From 82c439c4f116b36d7d171bcc923b50ead59b4ab2 Mon Sep 17 00:00:00 2001 From: Tudor Brindus Date: Sun, 14 Jun 2020 16:38:48 -0400 Subject: input/cursor: send idle events based off device type, not input type Previously, a tablet or touch device could report activity as a pointer device if it went through pointer emulation. This commit refactors idle sources to be consistently reported based on the type of the device that generated an input event, and now how that input event is being processed. --- 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 73a8deac..1be8d552 100644 --- a/sway/input/seat.c +++ b/sway/input/seat.c @@ -1380,9 +1380,9 @@ void seat_apply_config(struct sway_seat *seat, wl_list_for_each(seat_device, &seat->devices, link) { seat_configure_device(seat, seat_device->input_device); + cursor_handle_activity(seat->cursor, + seat_device->input_device->wlr_device); } - - cursor_handle_activity(seat->cursor, IDLE_SOURCE_POINTER); } struct seat_config *seat_get_config(struct sway_seat *seat) { -- cgit v1.2.3