diff options
author | D.B <thejan.2009@gmail.com> | 2016-10-07 07:32:57 +0200 |
---|---|---|
committer | D.B <thejan.2009@gmail.com> | 2016-10-07 08:12:14 +0200 |
commit | d3f5ac8cbbdde88e5822c1d9dd20ce9cbde8cbbe (patch) | |
tree | 0bc3d10ca1e127f92c047adb85c4bba68d61471c /sway/layout.c | |
parent | 7f558ce894934bd347140f5edd6419bf7d115c26 (diff) |
add force_focus_wrapping option
Diffstat (limited to 'sway/layout.c')
-rw-r--r-- | sway/layout.c | 3 |
1 files changed, 3 insertions, 0 deletions
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]; |