mirror of
https://github.com/swaywm/sway.git
synced 2025-01-17 00:18:04 +01:00
Merge pull request #2761 from RyanDwyer/seat-op-ignore-buttons
Ignore unrelated cursor buttons while doing seat operations
This commit is contained in:
commit
192ec7d6c8
1 changed files with 6 additions and 5 deletions
|
@ -754,11 +754,12 @@ void dispatch_cursor_button(struct sway_cursor *cursor,
|
||||||
}
|
}
|
||||||
struct sway_seat *seat = cursor->seat;
|
struct sway_seat *seat = cursor->seat;
|
||||||
|
|
||||||
// Handle ending seat operation
|
// Handle existing seat operation
|
||||||
if (cursor->seat->operation != OP_NONE &&
|
if (cursor->seat->operation != OP_NONE) {
|
||||||
button == cursor->seat->op_button && state == WLR_BUTTON_RELEASED) {
|
if (button == cursor->seat->op_button && state == WLR_BUTTON_RELEASED) {
|
||||||
seat_end_mouse_operation(seat);
|
seat_end_mouse_operation(seat);
|
||||||
seat_pointer_notify_button(seat, time_msec, button, state);
|
seat_pointer_notify_button(seat, time_msec, button, state);
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue