gdk/macos: Avoid gdk_device_get_associated_device()

Query the seat for that.
This commit is contained in:
Carlos Garnacho 2020-07-30 14:27:25 +02:00
parent 94982dbab7
commit 398c1d1ad7

View File

@ -414,11 +414,13 @@ gdk_dnd_handle_key_event (GdkDrag *drag,
GdkMacosDrag *self = GDK_MACOS_DRAG (drag);
GdkModifierType state;
GdkDevice *pointer;
GdkSeat *seat;
int dx, dy;
dx = dy = 0;
state = gdk_event_get_modifier_state (event);
pointer = gdk_device_get_associated_device (gdk_event_get_device (event));
seat = gdk_event_get_seat (event);
pointer = gdk_seat_get_pointer (seat);
if (event->event_type == GDK_KEY_PRESS)
{