diff options
author | Drew DeVault <sir@cmpwn.com> | 2015-10-21 19:44:23 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2015-10-21 19:44:23 -0400 |
commit | 15d0739f73b5486653ad4f8e1e50ebbfb1b415af (patch) | |
tree | 49c85672cf9ba8e0fa08994b27b8f37c73be4022 /sway/commands.c | |
parent | 3e2579b22cb76e098e78aec62c3c40a4bde0e394 (diff) | |
parent | edf33aad29f142c08ad8ecbac7fb859c92d128e3 (diff) |
Merge pull request #199 from sce/mouse_cross_output_edge_simple
Switch to adjacent output when hitting output edge.
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) { return CMD_SUCCESS; } +static enum cmd_status cmd_seamless_mouse(int argc, char **argv) { + if (!checkarg(argc, "seamless_mouse", EXPECTED_EQUAL_TO, 1)) { + return CMD_FAILURE; + } + + config->seamless_mouse = (strcasecmp(argv[0], "on") == 0 || strcasecmp(argv[0], "yes") == 0); + return CMD_SUCCESS; +} + static void hide_view_in_scratchpad(swayc_t *sp_view) { if (sp_view == NULL) { return; @@ -1139,6 +1148,7 @@ static struct cmd_handler handlers[] = { { "reload", cmd_reload }, { "resize", cmd_resize }, { "scratchpad", cmd_scratchpad }, + { "seamless_mouse", cmd_seamless_mouse }, { "set", cmd_set }, { "split", cmd_split }, { "splith", cmd_splith }, |