From 27773e1cb7492de080bd19189b4fcd2a6b9a0e9e Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sun, 22 Apr 2007 15:22:25 +0000 Subject: don't grab the pointer during interactive events. this allows you to alt-tab during a dnd. --- openbox/popup.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'openbox/popup.c') 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)); } } -- cgit v1.2.3