mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-30 07:42:23 +02:00
Performance: do not render window background and shadows when fullscreen
This commit is contained in:
@@ -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 {
|
||||
|
@@ -143,3 +143,9 @@ scale marks {
|
||||
.uridialogbox {
|
||||
margin: 12px;
|
||||
}
|
||||
|
||||
/* Other */
|
||||
.gpufriendly {
|
||||
box-shadow: none;
|
||||
background: none;
|
||||
}
|
||||
|
Reference in New Issue
Block a user