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



commit 1e28ea0cf860db703f928ad3e666dd8a61574dab
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 786d654199..2018b0122d 100644
--- a/js/ui/dnd.js
+++ b/js/ui/dnd.js
@@ -310,8 +310,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]