Performance: do not render window background and shadows when fullscreen

This commit is contained in:
Rafostar
2020-11-12 22:51:14 +01:00
parent 63236a8097
commit 8e48da2a9f
2 changed files with 10 additions and 0 deletions

View File

@@ -99,6 +99,10 @@ var Widget = GObject.registerClass({
this.fullscreenMode = isFullscreen;
let root = this.get_root();
let action = (isFullscreen) ? 'add' : 'remove';
root[action + '_css_class']('gpufriendly');
if(!this.floatingMode)
this._changeControlsPlacement(isFullscreen);
else {

View File

@@ -143,3 +143,9 @@ scale marks {
.uridialogbox {
margin: 12px;
}
/* Other */
.gpufriendly {
box-shadow: none;
background: none;
}