summaryrefslogtreecommitdiff
path: root/openbox/popup.c
diff options
context:
space:
mode:
Diffstat (limited to 'openbox/popup.c')
-rw-r--r--openbox/popup.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/openbox/popup.c b/openbox/popup.c
index f46a3a7f..86d4fb4d 100644
--- a/openbox/popup.c
+++ b/openbox/popup.c
@@ -265,11 +265,15 @@ void popup_delay_show(ObPopup *self, gulong usec, gchar *text)
void popup_hide(ObPopup *self)
{
if (self->mapped) {
+ gulong ignore_start;
+
+ /* kill enter events cause by this unmapping */
+ ignore_start = event_start_ignore_all_enters();
+
XUnmapWindow(ob_display, self->bg);
self->mapped = FALSE;
- /* kill enter events cause by this unmapping */
- event_ignore_all_queued_enters();
+ event_end_ignore_all_enters(ignore_start);
} else if (self->delay_mapped) {
ob_main_loop_timeout_remove(ob_main_loop, popup_show_timeout);
self->delay_mapped = FALSE;