config: fix gesture dispatcher parsing with whitespaces (#11784)
* config: fix gesture dispatcher parsing with whitespaces Some dispatcher functions (e.g., `moveFocusTo`) expect the given string to be stripped of whitepsaces. This fixes `gesture` line parsing: rather than calling dispatcher functions with the original string, we reuse words parsed by `CConstVarList` and join them with a comma. * tests/gestures: Add a test for `movecursortocorner`
This commit is contained in:
parent
d8f615751a
commit
4f3dd1ddb4
3 changed files with 15 additions and 8 deletions
|
|
@ -333,6 +333,7 @@ gesture = 3, down, mod:ALT, float
|
|||
gesture = 3, horizontal, mod:ALT, workspace
|
||||
|
||||
gesture = 4, up, dispatcher, sendshortcut, ctrl, d, activewindow
|
||||
gesture = 4, left, dispatcher, movecursortocorner, 1
|
||||
|
||||
windowrule = float, pin, class:wr_kitty
|
||||
windowrule = size 200 200, class:wr_kitty
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue