magnifier: Fix (un)inhibiting unredirection
The methods for (un)inhibiting unredirection are on the compositor,
not the display.
Fixes: 4034e69d0d
("Adapt to fixed Meta functions namespace")
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3575>
This commit is contained in:
@@ -186,12 +186,12 @@ export class Magnifier extends Signals.EventEmitter {
|
||||
this._updateMouseSprite();
|
||||
this._cursorTracker.connectObject(
|
||||
'cursor-changed', this._updateMouseSprite.bind(this), this);
|
||||
global.display.disable_unredirect();
|
||||
global.compositor.disable_unredirect();
|
||||
this.startTrackingMouse();
|
||||
} else {
|
||||
this._cursorTracker.disconnectObject(this);
|
||||
this._mouseSprite.content.texture = null;
|
||||
global.display.enable_unredirect();
|
||||
global.compositor.enable_unredirect();
|
||||
this.stopTrackingMouse();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user