summaryrefslogtreecommitdiff
path: root/openbox/actions
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2010-04-16 18:17:05 -0400
committerDana Jansens <danakj@orodu.net>2010-04-16 21:32:31 -0400
commit56fface3a4e2b5970e4867047207da84a58adeb2 (patch)
tree0c7a497e9d53878905ca197ab216b9d8097aa0db /openbox/actions
parentfde5d8601a182ae28fd65270766e51bea1f15a94 (diff)
add an option to next/previous window to only include hilited/flashing/urgent windows (feature req/bug #4341)
Diffstat (limited to 'openbox/actions')
-rw-r--r--openbox/actions/cyclewindows.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/openbox/actions/cyclewindows.c b/openbox/actions/cyclewindows.c
index 6bd96577..bbcb6585 100644
--- a/openbox/actions/cyclewindows.c
+++ b/openbox/actions/cyclewindows.c
@@ -11,6 +11,7 @@ typedef struct {
gboolean linear;
gboolean dock_windows;
gboolean desktop_windows;
+ gboolean only_hilite_windows;
gboolean all_desktops;
gboolean forward;
gboolean bar;
@@ -83,6 +84,8 @@ static gpointer setup_func(xmlNodePtr node,
o->raise = obt_xml_node_bool(n);
if ((n = obt_xml_find_node(node, "panels")))
o->dock_windows = obt_xml_node_bool(n);
+ if ((n = obt_xml_find_node(node, "hilite")))
+ o->only_hilite_windows = obt_xml_node_bool(n);
if ((n = obt_xml_find_node(node, "desktop")))
o->desktop_windows = obt_xml_node_bool(n);
if ((n = obt_xml_find_node(node, "allDesktops")))
@@ -154,6 +157,7 @@ static gboolean run_func(ObActionsData *data, gpointer options)
ft = focus_cycle(o->forward,
o->all_desktops,
+ !o->only_hilite_windows,
o->dock_windows,
o->desktop_windows,
o->linear,
@@ -226,6 +230,7 @@ static void i_post_func(gpointer options)
ft = focus_cycle(o->forward,
o->all_desktops,
+ !o->only_hilite_windows,
o->dock_windows,
o->desktop_windows,
o->linear,