From 683211e23c17cb7439572f42c848d1925cd8d4c5 Mon Sep 17 00:00:00 2001 From: Ignacio Losiggio Date: Mon, 23 Jul 2018 16:12:00 -0300 Subject: [PATCH] cycling: Add cycling through all windows on the current workspace Bug: 8865 Simple implementation that adds the posibility of cycling through all the windows in the current workspace regardless of monitor. --- defaults/defaults | 1 + src/focus.c | 2 +- src/settings.c | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/defaults/defaults b/defaults/defaults index cf3d8703..4f5a7d44 100644 --- a/defaults/defaults +++ b/defaults/defaults @@ -14,6 +14,7 @@ cycle_minimum=true cycle_preview=true cycle_tabwin_mode=0 cycle_workspaces=false +cycle_monitor=false double_click_action=maximize double_click_distance=5 double_click_time=250 diff --git a/src/focus.c b/src/focus.c index 2a8a3e83..6796d006 100644 --- a/src/focus.c +++ b/src/focus.c @@ -292,7 +292,7 @@ clientSelectMask (Client * c, Client *other, guint mask, guint type) int monitor_count; XRRMonitorInfo *monitors; - monitors = XRRGetMonitors(clientGetXDisplay(c), c->window, true, &monitor_count); + monitors = XRRGetMonitors(clientGetXDisplay(c), c->window, True, &monitor_count); for (i = 0; i < monitor_count; i++) { diff --git a/src/settings.c b/src/settings.c index d7dcb353..4ffbe92e 100644 --- a/src/settings.c +++ b/src/settings.c @@ -763,6 +763,8 @@ loadSettings (ScreenInfo *screen_info) CLAMP (getIntValue ("cycle_tabwin_mode", rc), 0, 1); screen_info->params->cycle_workspaces = getBoolValue ("cycle_workspaces", rc); + screen_info->params->cycle_monitor = + getBoolValue ("cycle_monitor", rc); screen_info->params->focus_hint = getBoolValue ("focus_hint", rc); screen_info->params->focus_new = -- 2.21.0