magnifier: Remove call to dropped Clutter::get_default_frame_rate()
Clutter::get_default_frame_rate() has been removed in mutter!2002, but it is still being used here. Given that this was basically hardcoded to 60 in mutter with the only way of changing this being an obscure environment variable, just use that value here directly. This avoids a crash when starting gnome-shell with the magnifier enabled. Fixes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/4761 Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2025>
This commit is contained in:
parent
ff60137da2
commit
34bf17ad27
@ -200,7 +200,7 @@ var Magnifier = class Magnifier {
|
|||||||
*/
|
*/
|
||||||
startTrackingMouse() {
|
startTrackingMouse() {
|
||||||
if (!this._pointerWatch) {
|
if (!this._pointerWatch) {
|
||||||
let interval = 1000 / Clutter.get_default_frame_rate();
|
let interval = 1000 / 60;
|
||||||
this._pointerWatch = PointerWatcher.getPointerWatcher().addWatch(interval, this.scrollToMousePos.bind(this));
|
this._pointerWatch = PointerWatcher.getPointerWatcher().addWatch(interval, this.scrollToMousePos.bind(this));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user