[gnome-shell/wip/carlosg/clutter-seat: 67/67] magnifier: Adapt to idle monitors API change
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/carlosg/clutter-seat: 67/67] magnifier: Adapt to idle monitors API change
- Date: Fri, 22 Nov 2019 10:18:41 +0000 (UTC)
commit 24e24405fcbde1f57db52fcd5491df0ac9ebe8f4
Author: Carlos Garnacho <carlosg gnome org>
Date: Wed Oct 9 17:05:29 2019 +0200
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 a5e6c22d77..9a09c12168 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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]