From 1869e4e830d08acd5f7801acd8910ce99806f53b Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Mon, 1 Oct 2012 22:32:59 -0400 Subject: Allow non-interactive focus cycling. Adds an bool option to the NextWindow and PreviousWindow actions. When it is false, the action is not interactive and will immediately switch focus to whatever the next focus target is. Removing the "interactive" flag from the focus_cycle() method, as it was unused previously, and the new code does not make use of it either. In order to be non-interactive it simply starts a focus_cycle then immediately ends it when the action ends. The "interactive" flag in focus_cycle() forced a linear cycling order which may not be what you want, so the new method is preferrable anyhow. --- openbox/focus_cycle.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'openbox/focus_cycle.h') diff --git a/openbox/focus_cycle.h b/openbox/focus_cycle.h index 9394b3df..8acb53d9 100644 --- a/openbox/focus_cycle.h +++ b/openbox/focus_cycle.h @@ -38,8 +38,8 @@ void focus_cycle_shutdown(gboolean reconfig); struct _ObClient* focus_cycle(gboolean forward, gboolean all_desktops, gboolean nonhilite_windows, gboolean dock_windows, gboolean desktop_windows, - gboolean linear, gboolean interactive, - gboolean showbar, ObFocusCyclePopupMode mode, + gboolean linear, gboolean showbar, + ObFocusCyclePopupMode mode, gboolean done, gboolean cancel); struct _ObClient* focus_directional_cycle(ObDirection dir, gboolean dock_windows, -- cgit v1.2.3