]> Dogcows Code - chaz/openbox/blobdiff - openbox/focus_cycle_popup.c
super amazing enter event skipping.
[chaz/openbox] / openbox / focus_cycle_popup.c
index 8e58c935ebf150960bb16d2e61fe9b8aaed15ffe..015330bda32f2be41a9b25b972568f0b360ae349 100644 (file)
@@ -465,13 +465,16 @@ void focus_cycle_popup_show(ObClient *c, gboolean iconic_windows,
 
 void focus_cycle_popup_hide()
 {
+    gulong ignore_start;
+
+    ignore_start = event_start_ignore_all_enters();
+
     XUnmapWindow(ob_display, popup.bg);
     XFlush(ob_display);
 
-    popup.mapped = FALSE;
+    event_end_ignore_all_enters(ignore_start);
 
-    /* kill enter events cause by this unmapping */
-    event_ignore_all_queued_enters();
+    popup.mapped = FALSE;
 
     while(popup.targets) {
         ObFocusCyclePopupTarget *t = popup.targets->data;
This page took 0.02201 seconds and 4 git commands to generate.