Skip to content

platform: clean up BackgroundManager instances when removing background - #320

Open
rudrab wants to merge 1 commit into
dsheeler:mainfrom
rudrab:fix-background-manager-cleanup
Open

rudrab wants to merge 1 commit into
dsheeler:mainfrom
rudrab:fix-background-manager-cleanup

Conversation

@rudrab

@rudrab rudrab commented Oct 10, 2026

Copy link
Copy Markdown

Each time initBackground() runs, new Background.BackgroundManager instances are allocated for the active monitors. When removeBackground() is called, destroying this._backgroundGroup does not call destroy() on the background managers themselves, leaving their internal signal connections and resources active.

This patch:

  • Collects the created BackgroundManager instances in this._bgManagers
  • Calls mgr.destroy() on each instance in removeBackground() before destroying the background group.

@mavens-group

Copy link
Copy Markdown

Since the extension is not yet updated to gnome 51, I have used ai to update it. Its working perfectly with my system (fedora 45), but i dont know anything about javascript. So, plz check throughly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants