From: Dana Jansens Date: Sun, 18 May 2003 03:32:34 +0000 (+0000) Subject: grab the mouse during focus cycling. this removes the bug of focusing following the... X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=ac779e65ac243e44bde4a3eaf11736e2671d7a2d;p=chaz%2Fopenbox grab the mouse during focus cycling. this removes the bug of focusing following the mouse when the popup disappears and fuck up your cycling. --- 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; }