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
This commit is contained in:
Carlos Garnacho 2020-02-05 16:49:34 +01:00 committed by Florian Müllner
parent 07882c4b6a
commit 5c570460cf

View File

@ -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;
}