[gnome-shell/wip/carlosg/clutter-seat: 95/96] dnd: Use ClutterSeat to fetch devices



commit 4fc4fca8be1159b4a264db2da46d0f88619479d9
Author: Carlos Garnacho <carlosg gnome org>
Date:   Sat Oct 5 12:37:25 2019 +0200

    dnd: Use ClutterSeat to fetch devices
    
    https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/760

 js/ui/dnd.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/js/ui/dnd.js b/js/ui/dnd.js
index 75edfe7c26..cc2f360b5f 100644
--- a/js/ui/dnd.js
+++ b/js/ui/dnd.js
@@ -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();
             }
         }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]