summaryrefslogtreecommitdiff
path: root/openbox/popup.c
diff options
context:
space:
mode:
Diffstat (limited to 'openbox/popup.c')
-rw-r--r--openbox/popup.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/openbox/popup.c b/openbox/popup.c
index e7fcbbe5..ee44ed23 100644
--- a/openbox/popup.c
+++ b/openbox/popup.c
@@ -213,8 +213,14 @@ 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));
}
}