mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-30 16:02:00 +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 {
|
||||
|
Reference in New Issue
Block a user