]> git.sur5r.net Git - i3/i3/commitdiff
ignore sequence of unmapnotify events (generates enternotify events)
authorMichael Stapelberg <michael@stapelberg.de>
Fri, 16 Apr 2010 18:56:49 +0000 (20:56 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Fri, 16 Apr 2010 18:56:49 +0000 (20:56 +0200)
src/handlers.c

index 4d3e88b9bc699d770b1735bf83180c6384ee3a7d..510148d0cdde5f1c09f28548667855684894a2e9 100644 (file)
@@ -450,9 +450,11 @@ int handle_screen_change(void *prophs, xcb_connection_t *conn,
  */
 int handle_unmap_notify_event(void *data, xcb_connection_t *conn, xcb_unmap_notify_event_t *event) {
 
-    //add_ignore_event(event->sequence);
+    /* we need to ignore EnterNotify events which will be generated because a
+     * different window is visible now */
+    add_ignore_event(event->sequence);
 
-    DLOG("UnmapNotify for 0x%08x (received from 0x%08x)\n", event->window, event->event);
+    DLOG("UnmapNotify for 0x%08x (received from 0x%08x), serial %d\n", event->window, event->event, event->sequence);
     Con *con = con_by_window_id(event->window);
     if (con == NULL) {
         LOG("Not a managed window, ignoring\n");