commit 3aadf944ae0ad08439d2651d37eb3c6c686d2709
parent 9fbe13b9be18c732b58033a57a22a299af91a170
Author: Ryan Dwyer <ryandwyer1@gmail.com>
Date: Wed, 18 Jul 2018 17:40:53 +1000
Use WLR_MODIFIER_SHIFT
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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;