1
0
Fork 0
mirror of https://github.com/NickHu/sway synced 2025-01-23 07:27:17 +01:00
sway-patched-tray-menu/sway/commands/seamless_mouse.c

14 lines
408 B
C
Raw Normal View History

2016-09-01 21:39:08 -05:00
#include <string.h>
2017-03-10 23:41:24 -05:00
#include <strings.h>
2016-09-02 14:11:48 -05:00
#include "sway/commands.h"
2016-09-01 21:39:08 -05:00
struct cmd_results *cmd_seamless_mouse(int argc, char **argv) {
struct cmd_results *error = NULL;
if ((error = checkarg(argc, "seamless_mouse", EXPECTED_EQUAL_TO, 1))) {
return error;
}
config->seamless_mouse = (strcasecmp(argv[0], "on") == 0 || strcasecmp(argv[0], "yes") == 0);
return cmd_results_new(CMD_SUCCESS, NULL, NULL);
}