aboutsummaryrefslogtreecommitdiffstats
path: root/sway/commands/focus_wrapping.c
diff options
context:
space:
mode:
authorLibravatar lbonn <bonnans.l@gmail.com>2019-10-16 20:27:19 +0200
committerLibravatar Simon Ser <contact@emersion.fr>2019-10-17 13:48:52 +0300
commit3ee3a9ef60c6259720564bbedb0c74d545d2ec53 (patch)
tree186eb0a0abf72e20fda497f1827c7fa717056d5c /sway/commands/focus_wrapping.c
parentxwayland.c handle_map(): NULL out xsurface->data() to prevent crashing. (diff)
downloadsway-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_wrapping.c')
-rw-r--r--sway/commands/focus_wrapping.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sway/commands/focus_wrapping.c b/sway/commands/focus_wrapping.c
index 3a74a3ea..d3901cb8 100644
--- a/sway/commands/focus_wrapping.c
+++ b/sway/commands/focus_wrapping.c
@@ -11,6 +11,8 @@ struct cmd_results *cmd_focus_wrapping(int argc, char **argv) {
11 11
12 if (strcasecmp(argv[0], "force") == 0) { 12 if (strcasecmp(argv[0], "force") == 0) {
13 config->focus_wrapping = WRAP_FORCE; 13 config->focus_wrapping = WRAP_FORCE;
14 } else if (strcasecmp(argv[0], "workspace") == 0) {
15 config->focus_wrapping = WRAP_WORKSPACE;
14 } else if (parse_boolean(argv[0], config->focus_wrapping == WRAP_YES)) { 16 } else if (parse_boolean(argv[0], config->focus_wrapping == WRAP_YES)) {
15 config->focus_wrapping = WRAP_YES; 17 config->focus_wrapping = WRAP_YES;
16 } else { 18 } else {