Skip to content

Conversation

m-sasha
Copy link
Member

@m-sasha m-sasha commented Aug 2, 2025

In ComposeSceneMediator.dispose(), we currently call (swing)interopContainer.dispose() before disposing the scene, but disposing the scene schedules calls for the interop container, which are then never executed because the mediator is already disposed.

Fixes https://youtrack.jetbrains.com/issue/CMP-8679/ComposePanel-doesnt-remove-interop-components-on-own-removal

Testing

Added a unit test

Release Notes

Fixes - Desktop

  • Correctly remove SwingPanel children of ComposePanel, when the compose panel is itself removed from the hierarchy.

@MatkovIvan MatkovIvan merged commit af216e4 into jb-main Aug 4, 2025
10 checks passed
@MatkovIvan MatkovIvan deleted the m-sasha/fix-swing-interop-view-removal branch August 4, 2025 08:32
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