[gnome-shell/wip/carlosg/clutter-seat: 13/15] dnd: Use ClutterSeat to fetch devices
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/carlosg/clutter-seat: 13/15] dnd: Use ClutterSeat to fetch devices
- Date: Mon, 14 Oct 2019 08:00:53 +0000 (UTC)
commit 2faea9393b23fdd9ce3b258c3a5481e3b6f6c83a
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]