diff options
Diffstat (limited to 'src/Keys.cc')
-rw-r--r-- | src/Keys.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Keys.cc b/src/Keys.cc index 34d5cc0..6a4406a 100644 --- a/src/Keys.cc +++ b/src/Keys.cc | |||
@@ -390,6 +390,11 @@ bool Keys::doAction(int type, unsigned int mods, unsigned int key, | |||
390 | // grab "None Escape" to exit keychain in the middle | 390 | // grab "None Escape" to exit keychain in the middle |
391 | unsigned int esc = FbTk::KeyUtil::getKey("Escape"); | 391 | unsigned int esc = FbTk::KeyUtil::getKey("Escape"); |
392 | 392 | ||
393 | // if focus changes, windows will get NotifyWhileGrabbed, | ||
394 | // which they tend to ignore | ||
395 | if (temp_key && type == KeyPress) | ||
396 | XUngrabKeyboard(Fluxbox::instance()->display(), CurrentTime); | ||
397 | |||
393 | if (temp_key && !temp_key->keylist.empty()) { // emacs-style | 398 | if (temp_key && !temp_key->keylist.empty()) { // emacs-style |
394 | if (!saved_keymode) | 399 | if (!saved_keymode) |
395 | saved_keymode = m_keylist; | 400 | saved_keymode = m_keylist; |