From 46c8e217ca8c5a51f987de2cb48c2aaabe3f6441 Mon Sep 17 00:00:00 2001 From: markt Date: Mon, 5 Nov 2007 17:45:05 +0000 Subject: fix alt-tab --- src/Keys.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 @@ #include "fluxbox.hh" #include "Screen.hh" +#include "FbTk/EventManager.hh" #include "FbTk/StringUtil.hh" #include "FbTk/App.hh" #include "FbTk/Command.hh" @@ -392,7 +393,8 @@ bool Keys::doAction(int type, unsigned int mods, unsigned int key, // if focus changes, windows will get NotifyWhileGrabbed, // which they tend to ignore - if (temp_key && type == KeyPress) + if (temp_key && type == KeyPress && + !FbTk::EventManager::instance()->grabbingKeyboard()) XUngrabKeyboard(Fluxbox::instance()->display(), CurrentTime); if (temp_key && !temp_key->keylist.empty()) { // emacs-style -- cgit v0.11.2