[gnome-shell/wip/carlosg/clutter-seat: 195/198] lookingGlass: 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: 195/198] lookingGlass: Use ClutterSeat to fetch devices
- Date: Thu, 10 Oct 2019 12:26:16 +0000 (UTC)
commit f304984654ce28a53a9fcbd025cb8d7ea4dc80b2
Author: Carlos Garnacho <carlosg gnome org>
Date: Sat Oct 5 12:37:15 2019 +0200
lookingGlass: Use ClutterSeat to fetch devices
js/ui/lookingGlass.js | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/js/ui/lookingGlass.js b/js/ui/lookingGlass.js
index e2bb8cc278..ae6eb59b10 100644
--- a/js/ui/lookingGlass.js
+++ b/js/ui/lookingGlass.js
@@ -502,9 +502,9 @@ var Inspector = GObject.registerClass({
eventHandler.connect('scroll-event', this._onScrollEvent.bind(this));
eventHandler.connect('motion-event', this._onMotionEvent.bind(this));
- let dm = Clutter.DeviceManager.get_default();
- this._pointerDevice = dm.get_core_device(Clutter.InputDeviceType.POINTER_DEVICE);
- this._keyboardDevice = dm.get_core_device(Clutter.InputDeviceType.KEYBOARD_DEVICE);
+ let seat = Clutter.get_default_backend().get_default_seat();
+ this._pointerDevice = seat.get_pointer();
+ this._keyboardDevice = seat.get_keyboard();
this._pointerDevice.grab(eventHandler);
this._keyboardDevice.grab(eventHandler);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]