dnd: Use ClutterSeat to fetch devices

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/760
This commit is contained in:
Carlos Garnacho 2019-10-05 12:37:25 +02:00 committed by Carlos Garnacho
parent bd016c6b49
commit 5a006d9e79

View File

@ -313,8 +313,8 @@ var _Draggable = class _Draggable {
device = event.get_device();
if (device == undefined) {
let manager = Clutter.DeviceManager.get_default();
device = manager.get_core_device(Clutter.InputDeviceType.POINTER_DEVICE);
let seat = Clutter.get_default_backend().get_default_seat();
device = seat.get_pointer();
}
}