diff --git a/clapper_src/widget.js b/clapper_src/widget.js index 694cc213..c35b23e9 100644 --- a/clapper_src/widget.js +++ b/clapper_src/widget.js @@ -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 { diff --git a/css/styles.css b/css/styles.css index ffd1a9ec..5d312a94 100644 --- a/css/styles.css +++ b/css/styles.css @@ -143,3 +143,9 @@ scale marks { .uridialogbox { margin: 12px; } + +/* Other */ +.gpufriendly { + box-shadow: none; + background: none; +}