mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-30 07:42:23 +02:00
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:
@@ -314,7 +314,7 @@ radio {
|
|||||||
.gpufriendly {
|
.gpufriendly {
|
||||||
box-shadow: -8px -8px transparent, 8px 8px transparent;
|
box-shadow: -8px -8px transparent, 8px 8px transparent;
|
||||||
}
|
}
|
||||||
.gpufriendlyfs {
|
.fullscreen.gpufriendlyfs {
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -34,6 +34,8 @@ class ClapperAppBase extends Gtk.Application
|
|||||||
|
|
||||||
if(!settings.get_boolean('render-shadows'))
|
if(!settings.get_boolean('render-shadows'))
|
||||||
window.add_css_class('gpufriendly');
|
window.add_css_class('gpufriendly');
|
||||||
|
|
||||||
|
window.add_css_class('gpufriendlyfs');
|
||||||
}
|
}
|
||||||
|
|
||||||
vfunc_activate()
|
vfunc_activate()
|
||||||
|
@@ -142,10 +142,6 @@ class ClapperWidget extends Gtk.Grid
|
|||||||
debug('changing fullscreen mode');
|
debug('changing fullscreen mode');
|
||||||
this.isFullscreenMode = isFullscreen;
|
this.isFullscreenMode = isFullscreen;
|
||||||
|
|
||||||
const root = this.get_root();
|
|
||||||
const action = (isFullscreen) ? 'add' : 'remove';
|
|
||||||
root[action + '_css_class']('gpufriendlyfs');
|
|
||||||
|
|
||||||
if(!isFullscreen)
|
if(!isFullscreen)
|
||||||
this._clearTimeout('updateTime');
|
this._clearTimeout('updateTime');
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user