Skip to content

Avoid disposing current unique window#1472

Open
Stefterv wants to merge 1 commit intoprocessing:mainfrom
Stefterv:fix-#1471
Open

Avoid disposing current unique window#1472
Stefterv wants to merge 1 commit intoprocessing:mainfrom
Stefterv:fix-#1471

Conversation

@Stefterv
Copy link
Contributor

@Stefterv Stefterv commented Mar 4, 2026

Add a check to ensure windows[unique] != window before calling toFront() and disposing, preventing the code from disposing the active window. Also tidy imports: replace layout wildcard with explicit Box/fillMaxSize/fillMaxWidth/fillMaxHeight imports, consolidate androidx.compose.runtime imports, and remove unused imports.

Fixes #1471

Interesting race condition that would only happen because the window gets recomposed when the display density changes.

Add a check to ensure windows[unique] != window before calling toFront() and disposing, preventing the code from disposing the active window. Also tidy imports: replace layout wildcard with explicit Box/fillMaxSize/fillMaxWidth/fillMaxHeight imports, consolidate androidx.compose.runtime imports, and remove unused imports.
Fixes processing#1471
@Stefterv Stefterv requested a review from catilac March 4, 2026 21:01
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.

Crash when dragging the Welcome screen to a secondary monitor

1 participant