From 331990a4f24aec35c6212af874d70bcc9cace258 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Mon, 4 Jan 2010 16:25:13 -0500 Subject: Make the Focus action stop all interactive actions (Fixes bug #4436) Old < 3.4.8 Openbox versions would stop focus cycling when focus moved. Now that is not the case, but you should be able to stop it by Choosing a window explicitly still. --- openbox/focus_cycle.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'openbox/focus_cycle.c') diff --git a/openbox/focus_cycle.c b/openbox/focus_cycle.c index 8d047497..c92b5a54 100644 --- a/openbox/focus_cycle.c +++ b/openbox/focus_cycle.c @@ -55,9 +55,10 @@ void focus_cycle_stop(ObClient *ifclient) { /* stop focus cycling if the given client is a valid focus target, and so the cycling is being disrupted */ - if (focus_cycle_target && ifclient && - (ifclient == focus_cycle_target || - focus_cycle_popup_is_showing(ifclient))) + if (focus_cycle_target && + ((ifclient && (ifclient == focus_cycle_target || + focus_cycle_popup_is_showing(ifclient))) || + !ifclient)) { focus_cycle(TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE,TRUE); focus_directional_cycle(0, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE); -- cgit v1.2.3