]> Dogcows Code - chaz/openbox/blobdiff - openbox/popup.c
unused variable "icons"
[chaz/openbox] / openbox / popup.c
index ee44ed2352688d4a013598630ddb8f88a02e517b..88619e77f073fbf493ec96e7a741172af3277c97 100644 (file)
@@ -23,6 +23,7 @@
 #include "frame.h"
 #include "client.h"
 #include "stacking.h"
+#include "event.h"
 #include "screen.h"
 #include "render/render.h"
 #include "render/theme.h"
@@ -213,14 +214,11 @@ void popup_show(ObPopup *self, gchar *text)
 void popup_hide(ObPopup *self)
 {
     if (self->mapped) {
-        XEvent e;
-
         XUnmapWindow(ob_display, self->bg);
         self->mapped = FALSE;
 
         /* kill enter events cause by this unmapping */
-        XSync(ob_display, FALSE);
-        while (XCheckTypedEvent(ob_display, EnterNotify, &e));
+        event_ignore_queued_enters();
     }
 }
 
This page took 0.020417 seconds and 4 git commands to generate.