Skip to content

Replace existing window when same window is added twice#128

Open
mogenson wants to merge 1 commit into
mainfrom
fix-double-add-window
Open

Replace existing window when same window is added twice#128
mogenson wants to merge 1 commit into
mainfrom
fix-double-add-window

Conversation

@mogenson
Copy link
Copy Markdown
Owner

@mogenson mogenson commented Jan 9, 2026

We currently ignore multiple add window events for the same window. But this might mean the existing window is invalid and tiling can fail when the new ignored window is focused. Replace the existing window with the new window for multiple add window events.

We currently ignore multiple add window events for the same window.
But this might mean the existing window is invalid and tiling can fail when the
new ignored window is focused. Replace the existing window with the new window
for multiple add window events.
@ArhanChaudhary
Copy link
Copy Markdown
Contributor

Did this end up being necessary?

@mogenson
Copy link
Copy Markdown
Owner Author

No, I thought this might be occurring with my terminal (WezTerm) changing the window ID when connecting to a remote ssh host. But after further investigation it does appear that old window is destroyed before the new window is added (even if it appears to be the same physical window on screen).

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