Skip to content

fix: create sill pot after removePane so minimize keeps the pot#103

Merged
ohxyz merged 1 commit into
mainfrom
fix/no-pot-after-minimized
Jun 27, 2026
Merged

fix: create sill pot after removePane so minimize keeps the pot#103
ohxyz merged 1 commit into
mainfrom
fix/no-pot-after-minimized

Conversation

@ohxyz

@ohxyz ohxyz commented Jun 27, 2026

Copy link
Copy Markdown
Collaborator

What

Minimizing an attached glass produced no sill pot, so the glass couldn't be restored.

Why

Regression from #101, which removed the live-pane guard in BinaryWindow.removePane. The minimize action planted the pot before calling removePane, and removePane's pot-cleanup (matching on sash-id) then destroyed the pot it had just planted.

Fix

Reorder action.minimize.js to call removePane first, then create the pot. After removal there's no matching pot for the cleanup to delete, so the freshly planted pot survives. binary-window.js is left untouched.

@ohxyz ohxyz requested a review from bhjsdev as a code owner June 27, 2026 10:24
@ohxyz ohxyz merged commit fb84aaf into main Jun 27, 2026
@ohxyz ohxyz deleted the fix/no-pot-after-minimized branch June 27, 2026 10:24
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.

1 participant