aboutsummaryrefslogtreecommitdiff
path: root/sway/input/seat.c
diff options
context:
space:
mode:
authorRouven Czerwinski <rouven@czerwinskis.de>2020-09-15 17:48:21 +0200
committerSimon Ser <contact@emersion.fr>2020-09-16 07:53:57 +0200
commit41999d7c9f9878017d9199f4cdeaf621d5fd706e (patch)
tree3b5e1512cd4685e014ad4c4ee687d5637d92d991 /sway/input/seat.c
parent65a751a21f61b30808b7e703257c6ca3b71f50eb (diff)
cursor: update hide timer during config apply
We can't arm the timer during cursor creation since the config may not be ready yet. Instead arm the timer while applying the input configuration, by this time the configuration has been parsed and we can arm the hide timer. Fixes #5686
Diffstat (limited to 'sway/input/seat.c')
-rw-r--r--sway/input/seat.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sway/input/seat.c b/sway/input/seat.c
index 8c80e41c..32b496ce 100644
--- a/sway/input/seat.c
+++ b/sway/input/seat.c
@@ -722,6 +722,8 @@ static void seat_configure_pointer(struct sway_seat *seat,
wlr_cursor_attach_input_device(seat->cursor->cursor,
sway_device->input_device->wlr_device);
seat_apply_input_config(seat, sway_device);
+ wl_event_source_timer_update(
+ seat->cursor->hide_source, cursor_get_timeout(seat->cursor));
}
static void seat_configure_keyboard(struct sway_seat *seat,