mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
screenShield: don't use Bin for BackgroundManager container
St.Bin() really only expects one child at a time, and the BackgroundManager will add two. This can cause assertion failures when destroying one of the background actors. https://bugzilla.gnome.org/show_bug.cgi?id=694227
This commit is contained in:
parent
09c14f1a10
commit
34443da7ab
1 changed files with 4 additions and 1 deletions
|
|
@ -540,7 +540,10 @@ const ScreenShield = new Lang.Class({
|
|||
_createBackground: function(monitorIndex) {
|
||||
let bin = new St.Bin({ style_class: 'screen-shield-background' });
|
||||
|
||||
let bgManager = new Background.BackgroundManager({ container: bin,
|
||||
let group = new Meta.BackgroundGroup();
|
||||
bin.child = group;
|
||||
|
||||
let bgManager = new Background.BackgroundManager({ container: group,
|
||||
monitorIndex: monitorIndex,
|
||||
effects: Meta.BackgroundEffects.BLUR | Meta.BackgroundEffects.DESATURATE });
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue