Leave CSS fullscreen optimization applied

Do not apply and remove fullscreen optimization class when going/leaving fullscreen. Instead set it to be applied to fullscreen only with CSS.
This commit is contained in:
Rafał Dzięgiel
2021-05-13 21:13:18 +02:00
parent 9006e56534
commit 6ae38327ca
3 changed files with 3 additions and 5 deletions

View File

@@ -314,7 +314,7 @@ radio {
.gpufriendly {
box-shadow: -8px -8px transparent, 8px 8px transparent;
}
.gpufriendlyfs {
.fullscreen.gpufriendlyfs {
box-shadow: none;
}

View File

@@ -34,6 +34,8 @@ class ClapperAppBase extends Gtk.Application
if(!settings.get_boolean('render-shadows'))
window.add_css_class('gpufriendly');
window.add_css_class('gpufriendlyfs');
}
vfunc_activate()

View File

@@ -142,10 +142,6 @@ class ClapperWidget extends Gtk.Grid
debug('changing fullscreen mode');
this.isFullscreenMode = isFullscreen;
const root = this.get_root();
const action = (isFullscreen) ? 'add' : 'remove';
root[action + '_css_class']('gpufriendlyfs');
if(!isFullscreen)
this._clearTimeout('updateTime');