From 0b0f86342827f91b2aa713d898f4db5b24d84c54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Tue, 13 Jun 2023 00:37:17 +0200 Subject: [PATCH] seat/native/impl: Also init core pointer coordinates Otherwise clutter_seat_query_state() doesn't give us the expected value, since it doesn't check the seat pointer coordinates. Part-of: --- src/backends/native/meta-seat-impl.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/backends/native/meta-seat-impl.c b/src/backends/native/meta-seat-impl.c index 8403fc94b..68bfaec0f 100644 --- a/src/backends/native/meta-seat-impl.c +++ b/src/backends/native/meta-seat-impl.c @@ -3169,11 +3169,15 @@ static gboolean init_pointer_position_in_impl (GTask *task) { MetaSeatImpl *seat_impl = g_task_get_source_object (task); + MetaInputDeviceNative *core_pointer = + META_INPUT_DEVICE_NATIVE (seat_impl->core_pointer); graphene_point_t *point; point = g_task_get_task_data (task); seat_impl->pointer_x = point->x; seat_impl->pointer_y = point->y; + core_pointer->pointer_x = point->x; + core_pointer->pointer_y = point->y; g_task_return_boolean (task, TRUE); return G_SOURCE_REMOVE;