]> Dogcows Code - chaz/openbox/blobdiff - otk/eventdispatcher.cc
support the button pressed resources better
[chaz/openbox] / otk / eventdispatcher.cc
index 4a70c8576ffc4b8a4175a3b148faf382574285b7..c80f3857a41a77ab7fd9ccb5f5571d2d894def74 100644 (file)
@@ -78,8 +78,10 @@ void OtkEventDispatcher::dispatchEvents(void)
       // any other types are not ones we're interested in
       if (e.xfocus.detail == NotifyNonlinear) {
         if (e.xfocus.window != focus) {
-          unfocus = focus;
+          if (focus)
+            unfocus = focus;
           focus = e.xfocus.window;
+          printf("FocusIn focus=%lx unfocus=%lx\n", focus, unfocus);
         }
       }
     } else if (e.type == FocusOut) {
@@ -88,6 +90,7 @@ void OtkEventDispatcher::dispatchEvents(void)
         if (e.xfocus.window == focus) {
           unfocus = focus;
           focus = None;
+          printf("FocusIn focus=%lx unfocus=%lx\n", focus, unfocus);
         }
       }
     } else {
This page took 0.025557 seconds and 4 git commands to generate.