summaryrefslogtreecommitdiff
path: root/openbox/focus.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2007-04-22 15:22:25 +0000
committerDana Jansens <danakj@orodu.net>2007-04-22 15:22:25 +0000
commit27773e1cb7492de080bd19189b4fcd2a6b9a0e9e (patch)
tree8bacdfc836ddb9d8da398e5981061fb578641b80 /openbox/focus.c
parent4c672be2e1f39e72eb7d7e99f129e61338f481b2 (diff)
don't grab the pointer during interactive events. this allows you to alt-tab during a dnd.
Diffstat (limited to 'openbox/focus.c')
-rw-r--r--openbox/focus.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/openbox/focus.c b/openbox/focus.c
index 197948e9..ea3d4fab 100644
--- a/openbox/focus.c
+++ b/openbox/focus.c
@@ -328,10 +328,16 @@ static void popup_cycle(ObClient *c, gboolean show)
void focus_cycle_draw_indicator()
{
if (!focus_cycle_target) {
+ XEvent e;
+
XUnmapWindow(ob_display, focus_indicator.top.win);
XUnmapWindow(ob_display, focus_indicator.left.win);
XUnmapWindow(ob_display, focus_indicator.right.win);
XUnmapWindow(ob_display, focus_indicator.bottom.win);
+
+ /* kill enter events cause by this unmapping */
+ XSync(ob_display, FALSE);
+ while (XCheckTypedEvent(ob_display, EnterNotify, &e));
} else {
/*
if (focus_cycle_target)