mirror of
https://github.com/swaywm/sway.git
synced 2024-11-23 00:11:28 +00:00
commands: Allow 'floating_modifier' & 'focus_follows_mouse' at runtime.
This commit is contained in:
parent
af30a1b67c
commit
187f0ab1c4
|
@ -323,7 +323,6 @@ static struct cmd_results *cmd_floating(int argc, char **argv) {
|
||||||
|
|
||||||
static struct cmd_results *cmd_floating_mod(int argc, char **argv) {
|
static struct cmd_results *cmd_floating_mod(int argc, char **argv) {
|
||||||
struct cmd_results *error = NULL;
|
struct cmd_results *error = NULL;
|
||||||
if (!config->reading) return cmd_results_new(CMD_FAILURE, "floating_modifier", "Can only be used in config file.");
|
|
||||||
if ((error = checkarg(argc, "floating_modifier", EXPECTED_EQUAL_TO, 1))) {
|
if ((error = checkarg(argc, "floating_modifier", EXPECTED_EQUAL_TO, 1))) {
|
||||||
return error;
|
return error;
|
||||||
}
|
}
|
||||||
|
@ -408,7 +407,6 @@ static struct cmd_results *cmd_focus(int argc, char **argv) {
|
||||||
|
|
||||||
static struct cmd_results *cmd_focus_follows_mouse(int argc, char **argv) {
|
static struct cmd_results *cmd_focus_follows_mouse(int argc, char **argv) {
|
||||||
struct cmd_results *error = NULL;
|
struct cmd_results *error = NULL;
|
||||||
if (!config->reading) return cmd_results_new(CMD_FAILURE, "focus_follows_mouse", "Can only be used in config file.");
|
|
||||||
if ((error = checkarg(argc, "focus_follows_mouse", EXPECTED_EQUAL_TO, 1))) {
|
if ((error = checkarg(argc, "focus_follows_mouse", EXPECTED_EQUAL_TO, 1))) {
|
||||||
return error;
|
return error;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue