aboutsummaryrefslogtreecommitdiff
path: root/sway/input/cursor.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/input/cursor.c')
-rw-r--r--sway/input/cursor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/input/cursor.c b/sway/input/cursor.c
index 6ad214b5..3c27a7f6 100644
--- a/sway/input/cursor.c
+++ b/sway/input/cursor.c
@@ -515,7 +515,7 @@ static void dispatch_cursor_button_floating(struct sway_cursor *cursor,
seat->operation = OP_RESIZE;
seat->op_container = cont;
seat->op_resize_preserve_ratio = keyboard &&
- (keyboard->modifiers.depressed & 1); // Shift
+ (keyboard->modifiers.depressed & WLR_MODIFIER_SHIFT);
seat->op_resize_edge = edge;
seat->op_button = button;
seat->op_ref_lx = cursor->cursor->x;