[gnome-shell/wip/carlosg/drop-device-idle-monitors: 48/48] magnifier: Use core idletime monitor



commit 5c570460cfb02cf5fd39d9afa328220703559001
Author: Carlos Garnacho <carlosg gnome org>
Date:   Wed Feb 5 16:49:34 2020 +0100

    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 953277dd93..d7d3506a57 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;
     }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]