Commit af03314f authored by Daniel van Vugt's avatar Daniel van Vugt Committed by Marge Bot
Browse files

magnifier: Avoid painting a desktop that's fully occluded by its clone

This significantly reduces the render time for fullscreen zoom mode.

Closes: #3305
Part-of: <!1899>
parent 5702349c
Pipeline #308705 passed with stages
in 5 minutes and 18 seconds
......@@ -856,6 +856,7 @@ var ZoomRegion = class ZoomRegion {
this._updateMousePosition();
this._connectSignals();
} else {
Main.uiGroup.set_opacity(255);
this._disconnectSignals();
this._destroyActors();
}
......@@ -1404,6 +1405,9 @@ var ZoomRegion = class ZoomRegion {
if (this.isActive() && this._isMouseOverRegion())
this._magnifier.hideSystemCursor();
const uiGroupIsOccluded = this.isActive() && this._isFullScreen();
Main.uiGroup.set_opacity(uiGroupIsOccluded ? 0 : 255);
}
_changeROI(params) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment