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



commit 987356e7cbfbf707c19f490a381f909b5f4835ae
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.

 js/ui/magnifier.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/js/ui/magnifier.js b/js/ui/magnifier.js
index 953277dd93..df59a2250f 100644
--- a/js/ui/magnifier.js
+++ b/js/ui/magnifier.js
@@ -746,7 +746,7 @@ var ZoomRegion = class ZoomRegion {
         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]