aboutsummaryrefslogtreecommitdiffstats
path: root/sway/input/seatop_resize_floating.c
diff options
context:
space:
mode:
authorLibravatar emersion <contact@emersion.fr>2019-02-28 19:22:47 +0100
committerLibravatar Brian Ashworth <bosrsf04@gmail.com>2019-02-28 23:02:06 -0500
commit88b283c55713c45968e2df5f8b89a40a0b32f720 (patch)
tree4fad7681ca82cf833920731624ce9f52df709bc0 /sway/input/seatop_resize_floating.c
parenttray: fix pixmap colors (diff)
downloadsway-88b283c55713c45968e2df5f8b89a40a0b32f720.tar.gz
sway-88b283c55713c45968e2df5f8b89a40a0b32f720.tar.zst
sway-88b283c55713c45968e2df5f8b89a40a0b32f720.zip
seat: don't send button release when not pressed
All seat operations except "down" eat the button pressed event and don't send it to clients. Thus, when ending such seat operations we shouldn't send the button released event. This commit moves the logic used to send pressed/released into the "down" operation.
Diffstat (limited to 'sway/input/seatop_resize_floating.c')
-rw-r--r--sway/input/seatop_resize_floating.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/input/seatop_resize_floating.c b/sway/input/seatop_resize_floating.c
index 12851b40..bf6c7ab4 100644
--- a/sway/input/seatop_resize_floating.c
+++ b/sway/input/seatop_resize_floating.c
@@ -142,7 +142,7 @@ static void handle_motion(struct sway_seat *seat, uint32_t time_msec) {
142 arrange_container(con); 142 arrange_container(con);
143} 143}
144 144
145static void handle_finish(struct sway_seat *seat) { 145static void handle_finish(struct sway_seat *seat, uint32_t time_msec) {
146 cursor_set_image(seat->cursor, "left_ptr", NULL); 146 cursor_set_image(seat->cursor, "left_ptr", NULL);
147} 147}
148 148