#include "frame.h"
#include "client.h"
#include "stacking.h"
+#include "event.h"
#include "screen.h"
#include "render/render.h"
#include "render/theme.h"
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();
}
}