Skip to content

enable multi-key modifier with floating_modifier (revised)#9137

Open
carpetoctopus wants to merge 3 commits into
swaywm:masterfrom
carpetoctopus:floating-fix
Open

enable multi-key modifier with floating_modifier (revised)#9137
carpetoctopus wants to merge 3 commits into
swaywm:masterfrom
carpetoctopus:floating-fix

Conversation

@carpetoctopus
Copy link
Copy Markdown

This commit allows multiple modifier keys to be used in combination for floating_modifier.

Example:

floating_modifier Shift+Alt normal

will work, whereas before it would throw an "Invalid modifier" error.
If the key combination contains multiple keys and not all of them are pressed, the drag/resize will not happen. If one of the keys is not a valid modifier key, an error will be thrown.

…e floating_modifier command.

Using mostly the same code as sway/commands/bar/modifier.c to modify sway/commands/floating_modifier.c.
sway/input/cursor.c and sway/input/seatop_default.c are changed to check if all floating modifier keys are pressed, instead of just one.
…e floating_modifier command.

Using mostly the same code as sway/commands/bar/modifier.c to modify sway/commands/floating_modifier.c.
sway/input/cursor.c and sway/input/seatop_default.c are changed to check if all floating modifier keys are pressed, instead of just one.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant