grab the mouse during focus cycling. this removes the bug of focusing following the mouse when the popup disappears and fuck up your cycling.
This commit is contained in:
parent
d1ceea89bd
commit
ac779e65ac
1 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue