mirror of
https://github.com/swaywm/sway.git
synced 2025-11-19 06:59:52 -05:00
Replace seatup allows_events with button callback
This commit is contained in:
parent
73605dac2a
commit
fb3475e291
4 changed files with 23 additions and 11 deletions
|
|
@ -610,9 +610,7 @@ void dispatch_cursor_button(struct sway_cursor *cursor,
|
|||
} else {
|
||||
state_erase_button(cursor, button);
|
||||
}
|
||||
if (seatop_allows_events(seat)) {
|
||||
seat_pointer_notify_button(seat, time_msec, button, state);
|
||||
}
|
||||
seatop_button(seat, time_msec, device, button, state);
|
||||
if (button == seat->seatop_button && state == WLR_BUTTON_RELEASED) {
|
||||
seatop_finish(seat, time_msec);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue