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:
Dana Jansens 2003-05-18 03:32:34 +00:00
parent d1ceea89bd
commit ac779e65ac

View file

@ -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;
}