diff --git a/gdk/broadway/gdkdisplay-broadway.c b/gdk/broadway/gdkdisplay-broadway.c index dd605d888f..c5f64286e2 100644 --- a/gdk/broadway/gdkdisplay-broadway.c +++ b/gdk/broadway/gdkdisplay-broadway.c @@ -97,9 +97,8 @@ gdk_broadway_display_init_input (GdkDisplay *display) g_list_free (list); /* Add the core pointer to the devices list */ - display->core_pointer = GDK_BROADWAY_DEVICE_MANAGER (device_manager)->core_pointer; broadway_display->input_devices = g_list_prepend (broadway_display->input_devices, - g_object_ref (display->core_pointer)); + g_object_ref (GDK_BROADWAY_DEVICE_MANAGER (device_manager)->core_pointer)); G_GNUC_END_IGNORE_DEPRECATIONS; } diff --git a/gdk/gdkdisplayprivate.h b/gdk/gdkdisplayprivate.h index 1dbf9f607f..6bdae091bf 100644 --- a/gdk/gdkdisplayprivate.h +++ b/gdk/gdkdisplayprivate.h @@ -102,7 +102,6 @@ struct _GdkDisplay * is part of a double-click or triple-click */ GHashTable *multiple_click_info; - GdkDevice *core_pointer; /* Core pointer device */ guint event_pause_count; /* How many times events are blocked */ diff --git a/gdk/mir/gdkmirdevicemanager.c b/gdk/mir/gdkmirdevicemanager.c index a4c38a9030..8628e04a04 100644 --- a/gdk/mir/gdkmirdevicemanager.c +++ b/gdk/mir/gdkmirdevicemanager.c @@ -107,7 +107,6 @@ gdk_mir_device_manager_constructed (GObject *object) _gdk_device_set_associated_device (device_manager->pointer, device_manager->keyboard); display = gdk_device_manager_get_display (GDK_DEVICE_MANAGER (device_manager)); - display->core_pointer = device_manager->pointer; seat = gdk_seat_default_new_for_master_pair (device_manager->pointer, device_manager->keyboard); gdk_display_add_seat (display, seat); diff --git a/gdk/quartz/gdkdisplay-quartz.c b/gdk/quartz/gdkdisplay-quartz.c index 62e1d6595a..15b3f39222 100644 --- a/gdk/quartz/gdkdisplay-quartz.c +++ b/gdk/quartz/gdkdisplay-quartz.c @@ -87,9 +87,8 @@ gdk_quartz_display_init_input (GdkDisplay *display) g_list_free (list); /* Add the core pointer to the devices list */ - display->core_pointer = GDK_QUARTZ_DEVICE_MANAGER_CORE (device_manager)->core_pointer; display_quartz->input_devices = g_list_prepend (display_quartz->input_devices, - g_object_ref (display->core_pointer)); + g_object_ref (GDK_QUARTZ_DEVICE_MANAGER_CORE (device_manager)->core_pointer)); } GdkDisplay * diff --git a/gdk/wayland/gdkdisplay-wayland.c b/gdk/wayland/gdkdisplay-wayland.c index 4d0a2275a6..50043dcc17 100644 --- a/gdk/wayland/gdkdisplay-wayland.c +++ b/gdk/wayland/gdkdisplay-wayland.c @@ -111,10 +111,10 @@ gdk_input_init (GdkDisplay *display) GdkWaylandDisplay *display_wayland; display_wayland = GDK_WAYLAND_DISPLAY (display); - display->core_pointer = gdk_seat_get_pointer (gdk_display_get_default_seat (display)); /* Add the core pointer to the devices list */ - display_wayland->input_devices = g_list_prepend (display_wayland->input_devices, display->core_pointer); + display_wayland->input_devices = g_list_prepend (display_wayland->input_devices, + gdk_seat_get_pointer (gdk_display_get_default_seat (display))); } static void diff --git a/gdk/win32/gdkdisplay-win32.c b/gdk/win32/gdkdisplay-win32.c index b4e8ff3bf5..1faf19fd8e 100644 --- a/gdk/win32/gdkdisplay-win32.c +++ b/gdk/win32/gdkdisplay-win32.c @@ -50,10 +50,8 @@ _gdk_input_init (GdkDisplay *display) NULL); display->device_manager = GDK_DEVICE_MANAGER (device_manager); - display->core_pointer = device_manager->core_pointer; - - devices = g_list_append (NULL, display->core_pointer); - devices = g_list_concat (devices, g_list_copy (device_manager->wintab_devices)); + devices = g_list_copy (device_manager->wintab_devices); + devices = g_list_prepend (devices, device_manager->core_pointer); GDK_WIN32_DISPLAY (display)->input_devices = devices; diff --git a/gdk/x11/gdkdisplay-x11.c b/gdk/x11/gdkdisplay-x11.c index 64095b20e5..484ce40f56 100644 --- a/gdk/x11/gdkdisplay-x11.c +++ b/gdk/x11/gdkdisplay-x11.c @@ -1369,9 +1369,8 @@ gdk_x11_display_init_input (GdkDisplay *display) g_list_free (list); - display->core_pointer = gdk_seat_get_pointer (gdk_display_get_default_seat (display)); display_x11->input_devices = g_list_prepend (display_x11->input_devices, - g_object_ref (display->core_pointer)); + g_object_ref (gdk_seat_get_pointer (gdk_display_get_default_seat (display)))); } static void