From d3f5ac8cbbdde88e5822c1d9dd20ce9cbde8cbbe Mon Sep 17 00:00:00 2001 From: "D.B" Date: Fri, 7 Oct 2016 07:32:57 +0200 Subject: add force_focus_wrapping option --- sway/layout.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sway/layout.c') diff --git a/sway/layout.c b/sway/layout.c index f10e21bd..a7206e9a 100644 --- a/sway/layout.c +++ b/sway/layout.c @@ -1123,6 +1123,9 @@ swayc_t *get_swayc_in_direction_under(swayc_t *container, enum movement_directio } else { wrap_candidate = parent->children->items[0]; } + if (config->force_focus_wrapping) { + return wrap_candidate; + } } } else { return parent->children->items[desired]; -- cgit v1.2.3