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



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

    dnd: Use ClutterSeat to fetch devices

 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]