X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=otk%2Feventdispatcher.cc;h=6c15a60bcf8d0aa9be411a517971eaf42b24630b;hb=915b171befc55dc12daffe5814cdf6332083f2ad;hp=07164f0b03599bfc35b73e690686b0adefc3b84b;hpb=d5cff9617cb8bf6416a1b574c111931e9e578b9f;p=chaz%2Fopenbox diff --git a/otk/eventdispatcher.cc b/otk/eventdispatcher.cc index 07164f0b..6c15a60b 100644 --- a/otk/eventdispatcher.cc +++ b/otk/eventdispatcher.cc @@ -99,7 +99,6 @@ void OtkEventDispatcher::dispatchEvents(void) void OtkEventDispatcher::dispatchFocus(const XEvent &e) { - if (e.type == FocusIn) { //printf("Got FocusIn!\n"); @@ -110,6 +109,10 @@ void OtkEventDispatcher::dispatchFocus(const XEvent &e) } else if (e.type == FocusOut) { //printf("Got FocusOut!\n"); + // ignore FocusOut changes from grabs + if (e.xfocus.mode == NotifyGrab) + return; + // FocusOut events just make us look for FocusIn events. They are ignored // otherwise. XEvent fi;