sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit 86ee240a4a6a958b4728b3613ce05edd884caf45
parent a576bc27bf29e91ccf6659cafffeb6cd38a8d9f1
Author: Alex Maese <memaese@hotmail.com>
Date:   Sun, 19 Jan 2020 11:10:30 -0600

Add ability to remove the floating modifier

Diffstat:
Msway/commands/floating_modifier.c | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/sway/commands/floating_modifier.c b/sway/commands/floating_modifier.c @@ -9,6 +9,11 @@ struct cmd_results *cmd_floating_modifier(int argc, char **argv) { 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]); if (!mod) { return cmd_results_new(CMD_INVALID, "Invalid modifier");