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.
This commit is contained in:
Ryan Dwyer 2018-07-22 22:14:36 +10:00
parent 3faceadffe
commit 5ba2ae9c6a
2 changed files with 42 additions and 0 deletions

View file

@ -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) {