background: Use actor.content.background
Because actor.background no longer exists and emitted errors when referenced. Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/2949 https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1343
This commit is contained in:
parent
5ea54426b9
commit
75235624b2
@ -712,13 +712,18 @@ var BackgroundManager = class BackgroundManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let newBackgroundActor = this._createBackgroundActor();
|
let newBackgroundActor = this._createBackgroundActor();
|
||||||
newBackgroundActor.vignette_sharpness = this.backgroundActor.vignette_sharpness;
|
|
||||||
newBackgroundActor.brightness = this.backgroundActor.brightness;
|
const oldContent = this.backgroundActor.content;
|
||||||
|
const newContent = newBackgroundActor.content;
|
||||||
|
|
||||||
|
newContent.vignette_sharpness = oldContent.vignette_sharpness;
|
||||||
|
newContent.brightness = oldContent.brightness;
|
||||||
|
|
||||||
newBackgroundActor.visible = this.backgroundActor.visible;
|
newBackgroundActor.visible = this.backgroundActor.visible;
|
||||||
|
|
||||||
this._newBackgroundActor = newBackgroundActor;
|
this._newBackgroundActor = newBackgroundActor;
|
||||||
|
|
||||||
let background = newBackgroundActor.background;
|
const { background } = newBackgroundActor.content;
|
||||||
|
|
||||||
if (background.isLoaded) {
|
if (background.isLoaded) {
|
||||||
this._swapBackgroundActor();
|
this._swapBackgroundActor();
|
||||||
|
Loading…
Reference in New Issue
Block a user