X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=otk%2Feventdispatcher.cc;h=ff3b8b64a44a992cf68b49f802bd87ff5cb29ca1;hb=805a5dddce6d072c3a3e2485585ee5630688a845;hp=d8bd539ce67ef31b134ce944e82c3807b048c3cd;hpb=8f8acc24933830d4f5784616b9b0c5896bde0b93;p=chaz%2Fopenbox diff --git a/otk/eventdispatcher.cc b/otk/eventdispatcher.cc index d8bd539c..ff3b8b64 100644 --- a/otk/eventdispatcher.cc +++ b/otk/eventdispatcher.cc @@ -99,6 +99,10 @@ void EventDispatcher::dispatchEvents(void) void EventDispatcher::dispatchFocus(const XEvent &e) { + // ignore focus changes from grabs + if (e.xfocus.mode == NotifyGrab) + return; + if (e.type == FocusIn) { //printf("Got FocusIn!\n"); @@ -109,10 +113,6 @@ void EventDispatcher::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;