]> Dogcows Code - chaz/openbox/commitdiff
don't ignore the same enter events more than once
authorDana Jansens <danakj@orodu.net>
Thu, 17 May 2007 23:11:14 +0000 (23:11 +0000)
committerDana Jansens <danakj@orodu.net>
Thu, 17 May 2007 23:11:14 +0000 (23:11 +0000)
openbox/event.c

index 08ec9db23a9bbf3ff7c2766a837429835b9eadf2..9720f24be06a947552acbfaf4812a431436c2a73 100644 (file)
@@ -1721,6 +1721,7 @@ void event_ignore_queued_enters()
 {
     GSList *saved = NULL, *it;
     XEvent *e;
+    gint i = 0;
                 
     XSync(ob_display, FALSE);
 
@@ -1731,10 +1732,13 @@ void event_ignore_queued_enters()
             ObWindow *win;
             
             win = g_hash_table_lookup(window_map, &e->xany.window);
-            if (win && WINDOW_IS_CLIENT(win))
+            /* check to make sure we're not ignoring the same event multiple
+               times */
+            if (win && WINDOW_IS_CLIENT(win) && i >= ignore_enter_focus)
                 ++ignore_enter_focus;
             
             saved = g_slist_append(saved, e);
+            ++i;
         } else {
             g_free(e);
             break;
This page took 0.02684 seconds and 4 git commands to generate.