mirror of
https://github.com/swaywm/sway.git
synced 2024-11-13 14:04:11 +01:00
Use WLR_MODIFIER_SHIFT
This commit is contained in:
parent
9fbe13b9be
commit
3aadf944ae
@ -515,7 +515,7 @@ static void dispatch_cursor_button_floating(struct sway_cursor *cursor,
|
|||||||
seat->operation = OP_RESIZE;
|
seat->operation = OP_RESIZE;
|
||||||
seat->op_container = cont;
|
seat->op_container = cont;
|
||||||
seat->op_resize_preserve_ratio = keyboard &&
|
seat->op_resize_preserve_ratio = keyboard &&
|
||||||
(keyboard->modifiers.depressed & 1); // Shift
|
(keyboard->modifiers.depressed & WLR_MODIFIER_SHIFT);
|
||||||
seat->op_resize_edge = edge;
|
seat->op_resize_edge = edge;
|
||||||
seat->op_button = button;
|
seat->op_button = button;
|
||||||
seat->op_ref_lx = cursor->cursor->x;
|
seat->op_ref_lx = cursor->cursor->x;
|
||||||
|
Loading…
Reference in New Issue
Block a user