From ac779e65ac243e44bde4a3eaf11736e2671d7a2d Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sun, 18 May 2003 03:32:34 +0000 Subject: [PATCH] grab the mouse during focus cycling. this removes the bug of focusing following the mouse when the popup disappears and fuck up your cycling. --- openbox/focus.c | 6 ++++++ 1 file changed, 6 insertions(+) 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; } -- 2.39.2