From 88b283c55713c45968e2df5f8b89a40a0b32f720 Mon Sep 17 00:00:00 2001 From: emersion Date: Thu, 28 Feb 2019 19:22:47 +0100 Subject: 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. --- sway/input/seat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sway/input/seat.c') diff --git a/sway/input/seat.c b/sway/input/seat.c index a16d3f27..9888ddfc 100644 --- a/sway/input/seat.c +++ b/sway/input/seat.c @@ -1211,9 +1211,9 @@ void seatop_motion(struct sway_seat *seat, uint32_t time_msec) { } } -void seatop_finish(struct sway_seat *seat) { +void seatop_finish(struct sway_seat *seat, uint32_t time_msec) { if (seat->seatop_impl && seat->seatop_impl->finish) { - seat->seatop_impl->finish(seat); + seat->seatop_impl->finish(seat, time_msec); } free(seat->seatop_data); seat->seatop_data = NULL; -- cgit v1.2.3