From 5c570460cfb02cf5fd39d9afa328220703559001 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Wed, 5 Feb 2020 16:49:34 +0100 Subject: [PATCH] magnifier: Use core idletime monitor As it's getting the idletime monitor for the seat pointer, boils down to about the same thing. We are moving away from per-device idletime monitors though. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/978 --- js/ui/magnifier.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/js/ui/magnifier.js b/js/ui/magnifier.js index 953277dd9..d7d3506a5 100644 --- a/js/ui/magnifier.js +++ b/js/ui/magnifier.js @@ -745,8 +745,7 @@ var ZoomRegion = class ZoomRegion { this._xCaret = 0; this._yCaret = 0; - let seat = Clutter.get_default_backend().get_default_seat(); - this._pointerIdleMonitor = Meta.IdleMonitor.get_for_device(seat.get_pointer()); + this._pointerIdleMonitor = Meta.IdleMonitor.get_core(); this._scrollContentsTimerId = 0; }