diff options
author | lbonn <bonnans.l@gmail.com> | 2019-10-16 20:27:19 +0200 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2019-10-17 13:48:52 +0300 |
commit | 3ee3a9ef60c6259720564bbedb0c74d545d2ec53 (patch) | |
tree | 186eb0a0abf72e20fda497f1827c7fa717056d5c /sway/commands/focus.c | |
parent | xwayland.c handle_map(): NULL out xsurface->data() to prevent crashing. (diff) | |
download | sway-3ee3a9ef60c6259720564bbedb0c74d545d2ec53.tar.gz sway-3ee3a9ef60c6259720564bbedb0c74d545d2ec53.tar.zst sway-3ee3a9ef60c6259720564bbedb0c74d545d2ec53.zip |
focus: support focus_wrapping workspace
Following i3 support: https://github.com/i3/i3/pull/3407
Diffstat (limited to 'sway/commands/focus.c')
-rw-r--r-- | sway/commands/focus.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sway/commands/focus.c b/sway/commands/focus.c index 8baa616d..93d1effe 100644 --- a/sway/commands/focus.c +++ b/sway/commands/focus.c | |||
@@ -160,7 +160,8 @@ static struct sway_node *node_get_in_direction_tiling( | |||
160 | // Check a different output | 160 | // Check a different output |
161 | struct sway_output *output = container->workspace->output; | 161 | struct sway_output *output = container->workspace->output; |
162 | struct sway_output *new_output = output_get_in_direction(output, dir); | 162 | struct sway_output *new_output = output_get_in_direction(output, dir); |
163 | if (new_output) { | 163 | if ((config->focus_wrapping != WRAP_WORKSPACE || |
164 | container->node.type == N_WORKSPACE) && new_output) { | ||
164 | return get_node_in_output_direction(new_output, dir); | 165 | return get_node_in_output_direction(new_output, dir); |
165 | } | 166 | } |
166 | 167 | ||