magnifier: Avoid painting a desktop that's fully occluded by its clone
This significantly reduces the render time for fullscreen zoom mode. Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3305 Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1899>
This commit is contained in:
parent
5702349c2d
commit
af03314f20
@ -856,6 +856,7 @@ var ZoomRegion = class ZoomRegion {
|
|||||||
this._updateMousePosition();
|
this._updateMousePosition();
|
||||||
this._connectSignals();
|
this._connectSignals();
|
||||||
} else {
|
} else {
|
||||||
|
Main.uiGroup.set_opacity(255);
|
||||||
this._disconnectSignals();
|
this._disconnectSignals();
|
||||||
this._destroyActors();
|
this._destroyActors();
|
||||||
}
|
}
|
||||||
@ -1404,6 +1405,9 @@ var ZoomRegion = class ZoomRegion {
|
|||||||
|
|
||||||
if (this.isActive() && this._isMouseOverRegion())
|
if (this.isActive() && this._isMouseOverRegion())
|
||||||
this._magnifier.hideSystemCursor();
|
this._magnifier.hideSystemCursor();
|
||||||
|
|
||||||
|
const uiGroupIsOccluded = this.isActive() && this._isFullScreen();
|
||||||
|
Main.uiGroup.set_opacity(uiGroupIsOccluded ? 0 : 255);
|
||||||
}
|
}
|
||||||
|
|
||||||
_changeROI(params) {
|
_changeROI(params) {
|
||||||
|
Loading…
Reference in New Issue
Block a user