]> Dogcows Code - chaz/openbox/blobdiff - openbox/focus_cycle_indicator.c
super amazing enter event skipping.
[chaz/openbox] / openbox / focus_cycle_indicator.c
index 0af8ab12fb97c9a53a097c1de652e911f7be3e42..203a85ff92170c453e3549de246c6d81c218959b 100644 (file)
@@ -119,13 +119,17 @@ void focus_cycle_indicator_shutdown(gboolean reconfig)
 void focus_cycle_draw_indicator(ObClient *c)
 {
     if (!c) {
+        gulong ignore_start;
+
+        /* kill enter events cause by this unmapping */
+        ignore_start = event_start_ignore_all_enters();
+
         XUnmapWindow(ob_display, focus_indicator.top.win);
         XUnmapWindow(ob_display, focus_indicator.left.win);
         XUnmapWindow(ob_display, focus_indicator.right.win);
         XUnmapWindow(ob_display, focus_indicator.bottom.win);
 
-        /* kill enter events cause by this unmapping */
-        event_ignore_all_queued_enters();
+        event_end_ignore_all_enters(ignore_start);
     } else {
         /*
           if (c)
This page took 0.023631 seconds and 4 git commands to generate.