diff --git a/css/styles.css b/css/styles.css index 86666971..92fd33c4 100644 --- a/css/styles.css +++ b/css/styles.css @@ -314,7 +314,7 @@ radio { .gpufriendly { box-shadow: -8px -8px transparent, 8px 8px transparent; } -.gpufriendlyfs { +.fullscreen.gpufriendlyfs { box-shadow: none; } diff --git a/src/appBase.js b/src/appBase.js index 52fef493..0a8eeee1 100644 --- a/src/appBase.js +++ b/src/appBase.js @@ -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() diff --git a/src/widget.js b/src/widget.js index 9f328c03..70679a3a 100644 --- a/src/widget.js +++ b/src/widget.js @@ -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');