aboutsummaryrefslogtreecommitdiff
path: root/sway/commands/force_focus_wrapping.c
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2016-10-07 08:40:18 -0400
committerGitHub <noreply@github.com>2016-10-07 08:40:18 -0400
commit02dc4142c0093675b7a12cf01c688ea05b81bd19 (patch)
treea8efa06d8e9f94400d93e9d3dbad9b2e94f536c8 /sway/commands/force_focus_wrapping.c
parent77433f0029b6bb07352647a512de810b72568260 (diff)
parent379b1a0378292ff1c470276f1caad59f36c7fc66 (diff)
Merge pull request #935 from thejan2009/wrap-focus-change
Wrap focus change
Diffstat (limited to 'sway/commands/force_focus_wrapping.c')
-rw-r--r--sway/commands/force_focus_wrapping.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/sway/commands/force_focus_wrapping.c b/sway/commands/force_focus_wrapping.c
new file mode 100644
index 00000000..23019cd3
--- /dev/null
+++ b/sway/commands/force_focus_wrapping.c
@@ -0,0 +1,12 @@
+#include <string.h>
+#include "sway/commands.h"
+
+struct cmd_results *cmd_force_focus_wrapping(int argc, char **argv) {
+ struct cmd_results *error = NULL;
+ if ((error = checkarg(argc, "force_focus_wrapping", EXPECTED_EQUAL_TO, 1))) {
+ return error;
+ }
+
+ config->force_focus_wrapping = !strcasecmp(argv[0], "yes");
+ return cmd_results_new(CMD_SUCCESS, NULL, NULL);
+}