]> Dogcows Code - chaz/openbox/commitdiff
ignore focus events from grabs
authorDana Jansens <danakj@orodu.net>
Wed, 8 Jan 2003 09:05:38 +0000 (09:05 +0000)
committerDana Jansens <danakj@orodu.net>
Wed, 8 Jan 2003 09:05:38 +0000 (09:05 +0000)
otk/eventdispatcher.cc

index 07164f0b03599bfc35b73e690686b0adefc3b84b..ad44fe2e21e70aa5bf30f4038a7c89ab72502101 100644 (file)
@@ -99,6 +99,9 @@ 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");
This page took 0.026101 seconds and 4 git commands to generate.