Skip to content

fix(Manager): don't duplicate composite devices after toggling ManageAllDevices - #809

Merged
pastaq merged 1 commit into
ShadowBlip:mainfrom
Nevon:fix-stale-composite-sources
Nov 20, 2026
Merged

pastaq merged 1 commit into
ShadowBlip:mainfrom
Nevon:fix-stale-composite-sources

Conversation

@Nevon

@Nevon Nevon commented Nov 14, 2026

Copy link
Copy Markdown
Contributor

Turning ManageAllDevices off and on again would create two composite devices for a controller that has more than one source device. I ran into this with an xbox elite series 2 connected over bluetooth, where it showed up as two composite devices after toggling.

The cause was the manager keeping the stopped composite device's source list, which then the next composite device with the same dbus path would inherit. Now we clear that state when a composite device stops.

A failed start could cause the same problem, so the sources are now only recorded once the composite device has actually started. An AI code review caught this case. My original fix only cleared the sources when a composite device stopped.

Turning ManageAllDevices off and on again created duplicate composite devices, because stopping a composite device didn't clear its entry in composite_device_sources.

Assisted-by: LLM
@Nevon Nevon changed the title fix(Manager): forget composite device sources when it stops fix(Manager): don't duplicate composite devices after toggling ManageAllDevices Nov 14, 2026
@pastaq
pastaq merged commit ba7b0b6 into ShadowBlip:main Nov 20, 2026
3 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 0.85.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants