mirror of
https://github.com/anomalyco/opentui.git
synced 2026-04-24 20:45:56 +03:00
[PR #515] fix(renderer): disable mouse tracking on destroy #1367
Labels
No labels
bug
core
documentation
feature
good first issue
help wanted
pull-request
question
react
solid
tmux
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/opentui#1367
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/anomalyco/opentui/pull/515
Author: @simonklee
Created: 1/12/2026
Status: 🔄 Open
Base:
main← Head:destroy-disable-mouse📝 Commits (2)
193cc09fix(renderer): disable mouse tracking on destroy0970a24Merge branch 'main' into destroy-disable-mouse📊 Changes
2 files changed (+19 additions, -0 deletions)
View changed files
📝
packages/core/src/renderer.ts(+5 -0)📝
packages/core/src/tests/renderer.useMouse.test.ts(+14 -0)📄 Description
The destroy path was not explicitly disabling mouse tracking before tearing down native resources. While the zig-side
performShutdownSequence() checks terminal.state.mouse, this relies on state synchronization that can fail silently in edge cases.
Add explicit disableMouse() call in finalizeDestroy(), same as we do in suspend(), to send disable mouse escape sequence to the terminal before the renderer is freed.
Fixes: #509
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.