diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-05-18 03:32:34 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-05-18 03:32:34 +0000 |
| commit | ac779e65ac243e44bde4a3eaf11736e2671d7a2d (patch) | |
| tree | bb855a79152012552f2428fbc4bf95a8c1f3d06c | |
| parent | d1ceea89bd811d776050d2f6a04370d30a0932b3 (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.
| -rw-r--r-- | openbox/focus.c | 6 |
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; } |
