mirror of
https://github.com/swaywm/sway.git
synced 2024-11-14 06:24:20 +01:00
Add ability to remove the floating modifier
This commit is contained in:
parent
a576bc27bf
commit
86ee240a4a
@ -9,6 +9,11 @@ struct cmd_results *cmd_floating_modifier(int argc, char **argv) {
|
|||||||
return error;
|
return error;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (strcasecmp(argv[0], "none") == 0) {
|
||||||
|
config->floating_mod = 0;
|
||||||
|
return cmd_results_new(CMD_SUCCESS, NULL);
|
||||||
|
}
|
||||||
|
|
||||||
uint32_t mod = get_modifier_mask_by_name(argv[0]);
|
uint32_t mod = get_modifier_mask_by_name(argv[0]);
|
||||||
if (!mod) {
|
if (!mod) {
|
||||||
return cmd_results_new(CMD_INVALID, "Invalid modifier");
|
return cmd_results_new(CMD_INVALID, "Invalid modifier");
|
||||||
|
Loading…
Reference in New Issue
Block a user