From 44b2d3ad81cd11aa7f21a3954ce70a0c21adfa23 Mon Sep 17 00:00:00 2001 From: Tudor Brindus Date: Sun, 19 Apr 2020 22:49:19 -0400 Subject: input/cursor: fix hide cursor timeouts on tablets and touchscreens This commit refactors `cursor_handle_activity` to also take the idle source, so that it can be reused for tablet and touch activity. Previously, the timeouts would be tracked, but the cursor would never be un-hidden for anything but pointers. Fixes #5169. --- sway/input/seat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sway/input/seat.c') diff --git a/sway/input/seat.c b/sway/input/seat.c index c3eae65c..b0e39612 100644 --- a/sway/input/seat.c +++ b/sway/input/seat.c @@ -1368,7 +1368,7 @@ void seat_apply_config(struct sway_seat *seat, seat_configure_device(seat, seat_device->input_device); } - cursor_handle_activity(seat->cursor); + cursor_handle_activity(seat->cursor, IDLE_SOURCE_POINTER); } struct seat_config *seat_get_config(struct sway_seat *seat) { -- cgit v1.2.3