aboutsummaryrefslogtreecommitdiffstats
path: root/sway/input/seat.c
diff options
context:
space:
mode:
authorLibravatar Tudor Brindus <me@tbrindus.ca>2020-06-14 16:38:48 -0400
committerLibravatar Simon Ser <contact@emersion.fr>2020-06-18 22:35:01 +0200
commit82c439c4f116b36d7d171bcc923b50ead59b4ab2 (patch)
tree3d503dfc3c3baa43ce1febef80d7a2259683b25d /sway/input/seat.c
parentgrimshot: fix POSIX compliance (diff)
downloadsway-82c439c4f116b36d7d171bcc923b50ead59b4ab2.tar.gz
sway-82c439c4f116b36d7d171bcc923b50ead59b4ab2.tar.zst
sway-82c439c4f116b36d7d171bcc923b50ead59b4ab2.zip
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.
Diffstat (limited to 'sway/input/seat.c')
-rw-r--r--sway/input/seat.c4
1 files changed, 2 insertions, 2 deletions
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,
1380 1380
1381 wl_list_for_each(seat_device, &seat->devices, link) { 1381 wl_list_for_each(seat_device, &seat->devices, link) {
1382 seat_configure_device(seat, seat_device->input_device); 1382 seat_configure_device(seat, seat_device->input_device);
1383 cursor_handle_activity(seat->cursor,
1384 seat_device->input_device->wlr_device);
1383 } 1385 }
1384
1385 cursor_handle_activity(seat->cursor, IDLE_SOURCE_POINTER);
1386} 1386}
1387 1387
1388struct seat_config *seat_get_config(struct sway_seat *seat) { 1388struct seat_config *seat_get_config(struct sway_seat *seat) {