]> Dogcows Code - chaz/openbox/blobdiff - otk/eventdispatcher.cc
default to drawing as utf8
[chaz/openbox] / otk / eventdispatcher.cc
index d8bd539ce67ef31b134ce944e82c3807b048c3cd..ff3b8b64a44a992cf68b49f802bd87ff5cb29ca1 100644 (file)
@@ -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;
This page took 0.020452 seconds and 4 git commands to generate.