Skip to content

WindowClone: rework cleanup - #2945

Draft
lenemter wants to merge 2 commits into
mainfrom
lenemter/rework-cleanup
Draft

lenemter wants to merge 2 commits into
mainfrom
lenemter/rework-cleanup

Conversation

@lenemter

@lenemter lenemter commented Oct 3, 2026

Copy link
Copy Markdown
Member

Investigating #2934

I think we don't need to handle Meta.Window.unmanaged now. Historically it was needed because WindowClone was destroying itself on unmanaged, but right now WindowCloneContainer destroys it instead.

@lenemter
lenemter requested a review from a team October 3, 2026 14:54
@lenemter
lenemter force-pushed the lenemter/rework-cleanup branch from 5463d76 to 03be5cd Compare October 3, 2026 14:54
@lenemter

lenemter commented Oct 3, 2026

Copy link
Copy Markdown
Member Author

@utf-4096 Could you check if this solves the crash please?

@utf-4096

utf-4096 commented Oct 3, 2026

Copy link
Copy Markdown

No change, unfortunately. I tested in a new VM that I updated and installed this branch on.

2026-10-03.17-42-13.mp4

One thing I missed in my reproduction instructions is that the audacious Qt backend needs to be running through Xwayland, the native Wayland driver does not give a crash for some reason.

@lenemter
lenemter force-pushed the lenemter/rework-cleanup branch from 03be5cd to af275f6 Compare October 3, 2026 21:43

@leolost2605 leolost2605 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense but it seems like something keeps a reference on the clone while dragging even after its window was unmanaged. This will cause lots of warnings to appear when a window is unmanaged while you are dragging it and the cursor also shows still as dragging because the drag doesn't get cancelled :/
(You can use sleep 5 && killall yourapp for testing.)

@lenemter
lenemter force-pushed the lenemter/rework-cleanup branch from af275f6 to 2cc5e89 Compare October 4, 2026 09:07
@lenemter
lenemter marked this pull request as draft October 4, 2026 13:35
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.

3 participants