]> Dogcows Code - chaz/openbox/commitdiff
ignore inferior enternotifies
authorDana Jansens <danakj@orodu.net>
Mon, 7 Apr 2003 22:27:02 +0000 (22:27 +0000)
committerDana Jansens <danakj@orodu.net>
Mon, 7 Apr 2003 22:27:02 +0000 (22:27 +0000)
add anotehr focusdebug print

openbox/event.c

index 2d548d9e6d018fac18ee93bf82a727344f355966..3a8f96b612be011e15681a0dd564b1979e5b6286 100644 (file)
@@ -289,7 +289,9 @@ void event_process(XEvent *e)
        event_lasttime = e->xcrossing.time;
         /* NotifyUngrab occurs when a mouse button is released and the event is
            caused, like when lowering a window */
-        if (e->xcrossing.mode == NotifyGrab) return;
+        if (e->xcrossing.mode == NotifyGrab ||
+            e->xcrossing.detail == NotifyInferior)
+            return;
        break;
     default:
         event_lasttime = CurrentTime;
@@ -386,8 +388,13 @@ static void event_handle_client(Client *client, XEvent *e)
                                                      client);
                 focus_order[desktop] = g_list_prepend(focus_order[desktop],
                                                       client);
-            } else if (focus_follow)
+            } else if (focus_follow) {
+#ifdef DEBUG_FOCUS
+                g_message("EnterNotify on %lx, focusing window",
+                          client->window);
+#endif
                 client_focus(client);
+            }
         }
         break;
     case ConfigureRequest:
This page took 0.023201 seconds and 4 git commands to generate.