mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 02:40:11 +00:00
quartz: get the core pointer from the device manager
https://bugzilla.gnome.org/show_bug.cgi?id=762820
This commit is contained in:
parent
539b1083de
commit
502744be85
@ -86,26 +86,10 @@ gdk_quartz_display_init_input (GdkDisplay *display)
|
||||
|
||||
g_list_free (list);
|
||||
|
||||
/* Now set "core" pointer to the first master device that is a pointer. */
|
||||
list = gdk_device_manager_list_devices (device_manager,
|
||||
GDK_DEVICE_TYPE_MASTER);
|
||||
|
||||
for (l = list; l; l = l->next)
|
||||
{
|
||||
GdkDevice *device = l->data;
|
||||
|
||||
if (gdk_device_get_source (device) != GDK_SOURCE_MOUSE)
|
||||
continue;
|
||||
|
||||
display->core_pointer = device;
|
||||
break;
|
||||
}
|
||||
|
||||
/* 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_list_free (list);
|
||||
}
|
||||
|
||||
GdkDisplay *
|
||||
|
Loading…
Reference in New Issue
Block a user