From 9aca26916ce70e8a4840076b97edd992889e4bf4 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Wed, 9 Oct 2019 17:05:29 +0200 Subject: [PATCH] magnifier: Adapt to idle monitors API change It takes Clutter input devices now, not device IDs. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/760 --- js/ui/magnifier.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/ui/magnifier.js b/js/ui/magnifier.js index fe1ca3e09..953277dd9 100644 --- a/js/ui/magnifier.js +++ b/js/ui/magnifier.js @@ -745,7 +745,8 @@ var ZoomRegion = class ZoomRegion { this._xCaret = 0; this._yCaret = 0; - this._pointerIdleMonitor = Meta.IdleMonitor.get_for_device(Meta.VIRTUAL_CORE_POINTER_ID); + let seat = Clutter.get_default_backend().get_default_seat(); + this._pointerIdleMonitor = Meta.IdleMonitor.get_for_device(seat.get_pointer()); this._scrollContentsTimerId = 0; }