aboutsummaryrefslogtreecommitdiffstats
path: root/sway/input/seat.c
diff options
context:
space:
mode:
authorLibravatar Tudor Brindus <me@tbrindus.ca>2020-04-19 22:49:19 -0400
committerLibravatar Simon Ser <contact@emersion.fr>2020-04-22 17:30:08 +0200
commit44b2d3ad81cd11aa7f21a3954ce70a0c21adfa23 (patch)
treee6acae4b7308b641626cba77bdc8583a9e5caf27 /sway/input/seat.c
parentinput/cursor: fix jerky resizing of non-tablet_v2 surfaces (diff)
downloadsway-44b2d3ad81cd11aa7f21a3954ce70a0c21adfa23.tar.gz
sway-44b2d3ad81cd11aa7f21a3954ce70a0c21adfa23.tar.zst
sway-44b2d3ad81cd11aa7f21a3954ce70a0c21adfa23.zip
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.
Diffstat (limited to 'sway/input/seat.c')
-rw-r--r--sway/input/seat.c2
1 files changed, 1 insertions, 1 deletions
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,
1368 seat_configure_device(seat, seat_device->input_device); 1368 seat_configure_device(seat, seat_device->input_device);
1369 } 1369 }
1370 1370
1371 cursor_handle_activity(seat->cursor); 1371 cursor_handle_activity(seat->cursor, IDLE_SOURCE_POINTER);
1372} 1372}
1373 1373
1374struct seat_config *seat_get_config(struct sway_seat *seat) { 1374struct seat_config *seat_get_config(struct sway_seat *seat) {