aboutsummaryrefslogtreecommitdiff
path: root/sway/input
diff options
context:
space:
mode:
authorRyan Dwyer <ryandwyer1@gmail.com>2018-07-22 22:14:36 +1000
committerRyan Dwyer <ryandwyer1@gmail.com>2018-07-22 23:10:19 +1000
commit5ba2ae9c6a4372cbf6f8867b711bb55ef6937cb4 (patch)
treed2a4d15c12f19fb7ef26a40b3701870fca9ab773 /sway/input
parent3faceadffe9c9b334d22cad3a348b82078b542b5 (diff)
downloadsway-5ba2ae9c6a4372cbf6f8867b711bb55ef6937cb4.tar.xz
Implement request_move and request_resize for xwayland views
I discovered we have to send a click event when ending the move or resize operation to make xwayland's requests work correctly.
Diffstat (limited to 'sway/input')
-rw-r--r--sway/input/cursor.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sway/input/cursor.c b/sway/input/cursor.c
index 54cd3bf7..f9b59fcc 100644
--- a/sway/input/cursor.c
+++ b/sway/input/cursor.c
@@ -474,6 +474,7 @@ void dispatch_cursor_button(struct sway_cursor *cursor,
if (cursor->seat->operation != OP_NONE &&
button == cursor->seat->op_button && state == WLR_BUTTON_RELEASED) {
seat_end_mouse_operation(cursor->seat);
+ seat_pointer_notify_button(cursor->seat, time_msec, button, state);
return;
}
if (time_msec == 0) {