mirror of
https://github.com/swaywm/sway.git
synced 2026-04-20 06:47:03 -04:00
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.
This commit is contained in:
parent
416c6ecb99
commit
88b283c557
8 changed files with 18 additions and 18 deletions
|
|
@ -142,7 +142,7 @@ static void handle_motion(struct sway_seat *seat, uint32_t time_msec) {
|
|||
arrange_container(con);
|
||||
}
|
||||
|
||||
static void handle_finish(struct sway_seat *seat) {
|
||||
static void handle_finish(struct sway_seat *seat, uint32_t time_msec) {
|
||||
cursor_set_image(seat->cursor, "left_ptr", NULL);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue