]> Dogcows Code - chaz/openbox/commitdiff
ignore much fewer focus events. only ignore focusout's from activating a grab
authorDana Jansens <danakj@orodu.net>
Wed, 8 Jan 2003 09:10:34 +0000 (09:10 +0000)
committerDana Jansens <danakj@orodu.net>
Wed, 8 Jan 2003 09:10:34 +0000 (09:10 +0000)
otk/eventdispatcher.cc

index ad44fe2e21e70aa5bf30f4038a7c89ab72502101..6c15a60bcf8d0aa9be411a517971eaf42b24630b 100644 (file)
@@ -99,10 +99,6 @@ void OtkEventDispatcher::dispatchEvents(void)
 
 void OtkEventDispatcher::dispatchFocus(const XEvent &e)
 {
-  // ignore all focus changes from grabs
-  if (e.xfocus.mode != NotifyNormal)
-    return;
-  
   if (e.type == FocusIn) {
     //printf("Got FocusIn!\n");
 
@@ -113,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;
This page took 0.023448 seconds and 4 git commands to generate.