summaryrefslogtreecommitdiff
path: root/openbox/focus_cycle.h
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2012-10-01 22:32:59 -0400
committerDana Jansens <danakj@orodu.net>2012-10-06 22:30:02 -0400
commit1869e4e830d08acd5f7801acd8910ce99806f53b (patch)
tree3cc34928f80aa19470cedbed6f44893e06349331 /openbox/focus_cycle.h
parentd0ba8806689ea80b6a739122aaf8dac81d2a3e5c (diff)
Allow non-interactive focus cycling.
Adds an <interactive>bool</interactive> 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.
Diffstat (limited to 'openbox/focus_cycle.h')
-rw-r--r--openbox/focus_cycle.h4
1 files changed, 2 insertions, 2 deletions
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,