From bd016c6b490b2a21371cdf522c4c507de840767c Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Sat, 5 Oct 2019 12:37:15 +0200 Subject: [PATCH] lookingGlass: Use ClutterSeat to fetch devices https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/760 --- 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 ac25c7b73..9e32183a2 100644 --- a/js/ui/lookingGlass.js +++ b/js/ui/lookingGlass.js @@ -531,9 +531,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);