aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarkt <markt>2007-11-05 17:45:05 (GMT)
committermarkt <markt>2007-11-05 17:45:05 (GMT)
commit46c8e217ca8c5a51f987de2cb48c2aaabe3f6441 (patch)
tree7b18277dca981620e102a64e7a077c7b86d0ab16
parent97f7c3e1b59b9a94e36a78d97c141f6a05f43e20 (diff)
downloadfluxbox_paul-46c8e217ca8c5a51f987de2cb48c2aaabe3f6441.zip
fluxbox_paul-46c8e217ca8c5a51f987de2cb48c2aaabe3f6441.tar.bz2
fix alt-tab
-rw-r--r--src/Keys.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Keys.cc b/src/Keys.cc
index 6a4406a..7e6c93e 100644
--- a/src/Keys.cc
+++ b/src/Keys.cc
@@ -27,6 +27,7 @@
27#include "fluxbox.hh" 27#include "fluxbox.hh"
28#include "Screen.hh" 28#include "Screen.hh"
29 29
30#include "FbTk/EventManager.hh"
30#include "FbTk/StringUtil.hh" 31#include "FbTk/StringUtil.hh"
31#include "FbTk/App.hh" 32#include "FbTk/App.hh"
32#include "FbTk/Command.hh" 33#include "FbTk/Command.hh"
@@ -392,7 +393,8 @@ bool Keys::doAction(int type, unsigned int mods, unsigned int key,
392 393
393 // if focus changes, windows will get NotifyWhileGrabbed, 394 // if focus changes, windows will get NotifyWhileGrabbed,
394 // which they tend to ignore 395 // which they tend to ignore
395 if (temp_key && type == KeyPress) 396 if (temp_key && type == KeyPress &&
397 !FbTk::EventManager::instance()->grabbingKeyboard())
396 XUngrabKeyboard(Fluxbox::instance()->display(), CurrentTime); 398 XUngrabKeyboard(Fluxbox::instance()->display(), CurrentTime);
397 399
398 if (temp_key && !temp_key->keylist.empty()) { // emacs-style 400 if (temp_key && !temp_key->keylist.empty()) { // emacs-style