summaryrefslogtreecommitdiff
path: root/openbox/popup.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2007-04-22 16:48:35 +0000
committerDana Jansens <danakj@orodu.net>2007-04-22 16:48:35 +0000
commit037654f3f89dcf07aba1b49b9f03a8187adeaa73 (patch)
tree630e40b79b86ff29dcefac70e5e0277754bbcd97 /openbox/popup.c
parentd6e49acf0ff267b3ee9a9f1e0102028734803747 (diff)
use ignore enters instead of removing them from the queue
Diffstat (limited to 'openbox/popup.c')
-rw-r--r--openbox/popup.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/openbox/popup.c b/openbox/popup.c
index ee44ed23..031b1d49 100644
--- a/openbox/popup.c
+++ b/openbox/popup.c
@@ -213,14 +213,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();
}
}