mirror of
https://github.com/swaywm/sway.git
synced 2025-11-17 06:59:48 -05:00
refactor commands.c
This commit is contained in:
parent
050704ab23
commit
b374c35758
77 changed files with 3567 additions and 3217 deletions
12
sway/commands/focus_follows_mouse.c
Normal file
12
sway/commands/focus_follows_mouse.c
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
#include <string.h>
|
||||
#include "commands.h"
|
||||
|
||||
struct cmd_results *cmd_focus_follows_mouse(int argc, char **argv) {
|
||||
struct cmd_results *error = NULL;
|
||||
if ((error = checkarg(argc, "focus_follows_mouse", EXPECTED_EQUAL_TO, 1))) {
|
||||
return error;
|
||||
}
|
||||
|
||||
config->focus_follows_mouse = !strcasecmp(argv[0], "yes");
|
||||
return cmd_results_new(CMD_SUCCESS, NULL, NULL);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue