summaryrefslogtreecommitdiff
path: root/openbox
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-05-18 03:32:34 +0000
committerDana Jansens <danakj@orodu.net>2003-05-18 03:32:34 +0000
commitac779e65ac243e44bde4a3eaf11736e2671d7a2d (patch)
treebb855a79152012552f2428fbc4bf95a8c1f3d06c /openbox
parentd1ceea89bd811d776050d2f6a04370d30a0932b3 (diff)
grab the mouse during focus cycling. this removes the bug of focusing following the mouse when the popup disappears and fuck up your cycling.
Diffstat (limited to 'openbox')
-rw-r--r--openbox/focus.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/openbox/focus.c b/openbox/focus.c
index 08fb09e1..6f5b04d1 100644
--- a/openbox/focus.c
+++ b/openbox/focus.c
@@ -271,6 +271,9 @@ Client *focus_cycle(gboolean forward, gboolean linear, gboolean done,
client_activate(focus_cycle_target);
goto done_cycle;
}
+ if (!first)
+ grab_pointer(TRUE, None);
+
if (!first) first = focus_client;
if (!focus_cycle_target) focus_cycle_target = focus_client;
@@ -312,7 +315,10 @@ done_cycle:
focus_cycle_target = NULL;
g_list_free(order);
order = NULL;
+
popup_cycle(ft, FALSE);
+ grab_pointer(FALSE, None);
+
return NULL;
}