aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-07-18 17:40:53 +1000
committerLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-07-22 23:10:19 +1000
commit3aadf944ae0ad08439d2651d37eb3c6c686d2709 (patch)
tree2b5b0d6677dea4666d5ee2b2ac52a696a87cd04f
parentImplement floating_modifier and mouse operations for floating views (diff)
downloadsway-3aadf944ae0ad08439d2651d37eb3c6c686d2709.tar.gz
sway-3aadf944ae0ad08439d2651d37eb3c6c686d2709.tar.zst
sway-3aadf944ae0ad08439d2651d37eb3c6c686d2709.zip
Use WLR_MODIFIER_SHIFT
-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,
515 seat->operation = OP_RESIZE; 515 seat->operation = OP_RESIZE;
516 seat->op_container = cont; 516 seat->op_container = cont;
517 seat->op_resize_preserve_ratio = keyboard && 517 seat->op_resize_preserve_ratio = keyboard &&
518 (keyboard->modifiers.depressed & 1); // Shift 518 (keyboard->modifiers.depressed & WLR_MODIFIER_SHIFT);
519 seat->op_resize_edge = edge; 519 seat->op_resize_edge = edge;
520 seat->op_button = button; 520 seat->op_button = button;
521 seat->op_ref_lx = cursor->cursor->x; 521 seat->op_ref_lx = cursor->cursor->x;