aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar S. Christoffer Eliesen <christoffer@eliesen.no>2015-10-23 12:45:46 +0200
committerLibravatar S. Christoffer Eliesen <christoffer@eliesen.no>2015-10-23 12:45:46 +0200
commit187f0ab1c4d24cf64d5db2b1ecf09b08b5a58c7a (patch)
treeb17a62ac3d4617e9d80258e005145baf2d51f7d1
parentipc,commands,config: Replace cmd_status enum with cmd_results struct. (diff)
downloadsway-187f0ab1c4d24cf64d5db2b1ecf09b08b5a58c7a.tar.gz
sway-187f0ab1c4d24cf64d5db2b1ecf09b08b5a58c7a.tar.zst
sway-187f0ab1c4d24cf64d5db2b1ecf09b08b5a58c7a.zip
commands: Allow 'floating_modifier' & 'focus_follows_mouse' at runtime.
-rw-r--r--sway/commands.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sway/commands.c b/sway/commands.c
index 4b11886e..50a6e941 100644
--- a/sway/commands.c
+++ b/sway/commands.c
@@ -323,7 +323,6 @@ static struct cmd_results *cmd_floating(int argc, char **argv) {
323 323
324static struct cmd_results *cmd_floating_mod(int argc, char **argv) { 324static struct cmd_results *cmd_floating_mod(int argc, char **argv) {
325 struct cmd_results *error = NULL; 325 struct cmd_results *error = NULL;
326 if (!config->reading) return cmd_results_new(CMD_FAILURE, "floating_modifier", "Can only be used in config file.");
327 if ((error = checkarg(argc, "floating_modifier", EXPECTED_EQUAL_TO, 1))) { 326 if ((error = checkarg(argc, "floating_modifier", EXPECTED_EQUAL_TO, 1))) {
328 return error; 327 return error;
329 } 328 }
@@ -408,7 +407,6 @@ static struct cmd_results *cmd_focus(int argc, char **argv) {
408 407
409static struct cmd_results *cmd_focus_follows_mouse(int argc, char **argv) { 408static struct cmd_results *cmd_focus_follows_mouse(int argc, char **argv) {
410 struct cmd_results *error = NULL; 409 struct cmd_results *error = NULL;
411 if (!config->reading) return cmd_results_new(CMD_FAILURE, "focus_follows_mouse", "Can only be used in config file.");
412 if ((error = checkarg(argc, "focus_follows_mouse", EXPECTED_EQUAL_TO, 1))) { 410 if ((error = checkarg(argc, "focus_follows_mouse", EXPECTED_EQUAL_TO, 1))) {
413 return error; 411 return error;
414 } 412 }