diff options
Diffstat (limited to 'sway/commands.c')
-rw-r--r-- | sway/commands.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sway/commands.c b/sway/commands.c index 7605a36b..a9c20e51 100644 --- a/sway/commands.c +++ b/sway/commands.c | |||
@@ -410,6 +410,15 @@ static enum cmd_status cmd_focus_follows_mouse(int argc, char **argv) { | |||
410 | return CMD_SUCCESS; | 410 | return CMD_SUCCESS; |
411 | } | 411 | } |
412 | 412 | ||
413 | static enum cmd_status cmd_seamless_mouse(int argc, char **argv) { | ||
414 | if (!checkarg(argc, "seamless_mouse", EXPECTED_EQUAL_TO, 1)) { | ||
415 | return CMD_FAILURE; | ||
416 | } | ||
417 | |||
418 | config->seamless_mouse = (strcasecmp(argv[0], "on") == 0 || strcasecmp(argv[0], "yes") == 0); | ||
419 | return CMD_SUCCESS; | ||
420 | } | ||
421 | |||
413 | static void hide_view_in_scratchpad(swayc_t *sp_view) { | 422 | static void hide_view_in_scratchpad(swayc_t *sp_view) { |
414 | if (sp_view == NULL) { | 423 | if (sp_view == NULL) { |
415 | return; | 424 | return; |
@@ -1139,6 +1148,7 @@ static struct cmd_handler handlers[] = { | |||
1139 | { "reload", cmd_reload }, | 1148 | { "reload", cmd_reload }, |
1140 | { "resize", cmd_resize }, | 1149 | { "resize", cmd_resize }, |
1141 | { "scratchpad", cmd_scratchpad }, | 1150 | { "scratchpad", cmd_scratchpad }, |
1151 | { "seamless_mouse", cmd_seamless_mouse }, | ||
1142 | { "set", cmd_set }, | 1152 | { "set", cmd_set }, |
1143 | { "split", cmd_split }, | 1153 | { "split", cmd_split }, |
1144 | { "splith", cmd_splith }, | 1154 | { "splith", cmd_splith }, |