aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sway/input/cursor.c2
-rw-r--r--sway/input/seat.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/sway/input/cursor.c b/sway/input/cursor.c
index 3e6b147e..f5c2bd17 100644
--- a/sway/input/cursor.c
+++ b/sway/input/cursor.c
@@ -1041,8 +1041,6 @@ struct sway_cursor *sway_cursor_create(struct sway_seat *seat) {
1041 1041
1042 cursor->hide_source = wl_event_loop_add_timer(server.wl_event_loop, 1042 cursor->hide_source = wl_event_loop_add_timer(server.wl_event_loop,
1043 hide_notify, cursor); 1043 hide_notify, cursor);
1044 wl_event_source_timer_update(
1045 cursor->hide_source, cursor_get_timeout(cursor));
1046 1044
1047 wl_list_init(&cursor->image_surface_destroy.link); 1045 wl_list_init(&cursor->image_surface_destroy.link);
1048 cursor->image_surface_destroy.notify = handle_image_surface_destroy; 1046 cursor->image_surface_destroy.notify = handle_image_surface_destroy;
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,
722 wlr_cursor_attach_input_device(seat->cursor->cursor, 722 wlr_cursor_attach_input_device(seat->cursor->cursor,
723 sway_device->input_device->wlr_device); 723 sway_device->input_device->wlr_device);
724 seat_apply_input_config(seat, sway_device); 724 seat_apply_input_config(seat, sway_device);
725 wl_event_source_timer_update(
726 seat->cursor->hide_source, cursor_get_timeout(seat->cursor));
725} 727}
726 728
727static void seat_configure_keyboard(struct sway_seat *seat, 729static void seat_configure_keyboard(struct sway_seat *seat,