Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BackgroundManager: Send changed signal early #1968

Merged
merged 5 commits into from
Jul 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions src/Background/BackgroundManager.vala
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,13 @@ public class Gala.BackgroundManager : Meta.BackgroundGroup, Gala.BackgroundManag
}
}

private void swap_background_actor (bool animate) {
return_if_fail (new_background_actor != null);

private void swap_background_actor (bool animate) requires (new_background_actor != null) {
var old_background_actor = background_actor;
background_actor = new_background_actor;
new_background_actor = null;

changed ();

if (old_background_actor == null) {
return;
}
Expand All @@ -76,7 +76,6 @@ public class Gala.BackgroundManager : Meta.BackgroundGroup, Gala.BackgroundManag
old_background_actor.destroy ();
}

changed ();
}

private void update_background_actor (bool animate = true) {
Expand Down
Loading