diff options
Diffstat (limited to 'src/Keys.cc')
-rw-r--r-- | src/Keys.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Keys.cc b/src/Keys.cc index 172d913..31f1722 100644 --- a/src/Keys.cc +++ b/src/Keys.cc | |||
@@ -575,6 +575,12 @@ bool Keys::doAction(int type, unsigned int mods, unsigned int key, | |||
575 | return false; | 575 | return false; |
576 | } | 576 | } |
577 | 577 | ||
578 | // if focus changes, windows will get NotifyWhileGrabbed, | ||
579 | // which they tend to ignore | ||
580 | if (type == KeyPress) { | ||
581 | XUngrabKeyboard(Fluxbox::instance()->display(), CurrentTime); | ||
582 | } | ||
583 | |||
578 | WinClient *old = WindowCmd<void>::client(); | 584 | WinClient *old = WindowCmd<void>::client(); |
579 | WindowCmd<void>::setClient(current); | 585 | WindowCmd<void>::setClient(current); |
580 | temp_key->m_command->execute(); | 586 | temp_key->m_command->execute(); |