BackgroundManager: Don't set visible (#1910)

This commit is contained in:
Leonhard 2024-05-26 18:06:54 +02:00 committed by GitHub
parent 74fcd4a891
commit e0e8bb7a70
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -20,7 +20,7 @@ public class Gala.BackgroundManager : Meta.BackgroundGroup, Gala.BackgroundManag
} }
private BackgroundSource background_source; private BackgroundSource background_source;
private Meta.BackgroundActor background_actor; private Meta.BackgroundActor? background_actor;
private Meta.BackgroundActor? new_background_actor = null; private Meta.BackgroundActor? new_background_actor = null;
public BackgroundManager (WindowManager wm, int monitor_index, bool control_position = true) { public BackgroundManager (WindowManager wm, int monitor_index, bool control_position = true) {
@ -88,7 +88,6 @@ public class Gala.BackgroundManager : Meta.BackgroundGroup, Gala.BackgroundManag
new_background_actor = create_background_actor (); new_background_actor = create_background_actor ();
var new_content = (Meta.BackgroundContent)new_background_actor.content; var new_content = (Meta.BackgroundContent)new_background_actor.content;
new_background_actor.visible = background_actor.visible;
var background = new_content.background.get_data<unowned Background> ("delegate"); var background = new_content.background.get_data<unowned Background> ("delegate");