Fixed unresponsive behavior of the shortcut setting dialog in recent

ditros. This resolves bug 2955.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 8ea3d4dd87)
v3.5.13-sru
Michele Calgaro 5 years ago committed by Slávek Banko
parent a860d82bef
commit df6c901347
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -82,7 +82,6 @@ KShortcutDialog::KShortcutDialog( const KShortcut& shortcut, bool bQtShortcut, T
m_bQtShortcut = bQtShortcut; m_bQtShortcut = bQtShortcut;
m_bGrab = false;
m_iSeq = 0; m_iSeq = 0;
m_iKey = 0; m_iKey = 0;
m_ptxtCurrent = 0; m_ptxtCurrent = 0;
@ -291,22 +290,20 @@ bool KShortcutDialog::x11Event( XEvent *pEvent )
x11KeyReleaseEvent( pEvent ); x11KeyReleaseEvent( pEvent );
return true; return true;
case XFocusIn: case XFocusIn:
if (!m_bGrab) { {
//kdDebug(125) << "FocusIn and Grab!" << endl; XFocusInEvent *fie = (XFocusInEvent*)pEvent;
if (fie->mode != NotifyGrab && fie->mode != NotifyUngrab) {
grabKeyboard(); grabKeyboard();
m_bGrab = true;
} }
//else }
// kdDebug(125) << "FocusIn" << endl;
break; break;
case XFocusOut: case XFocusOut:
if (m_bGrab) { {
//kdDebug(125) << "FocusOut and Ungrab!" << endl; XFocusOutEvent *foe = (XFocusOutEvent*)pEvent;
if (foe->mode != NotifyGrab && foe->mode != NotifyUngrab) {
releaseKeyboard(); releaseKeyboard();
m_bGrab = false;
} }
//else }
// kdDebug(125) << "FocusOut" << endl;
break; break;
default: default:
//kdDebug(125) << "x11Event->type = " << pEvent->type << endl; //kdDebug(125) << "x11Event->type = " << pEvent->type << endl;

@ -53,7 +53,6 @@ private:
bool m_bQtShortcut; bool m_bQtShortcut;
KShortcut m_shortcut; KShortcut m_shortcut;
bool m_bGrab;
KPushButton* m_ptxtCurrent; KPushButton* m_ptxtCurrent;
uint m_iSeq; uint m_iSeq;
uint m_iKey; uint m_iKey;

Loading…
Cancel
Save