Repository navigation
Mouse: side button stays stuck down after dragging with it #15242
Unanswered
perrin4869
asked this question in
Issue Triage
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Issue Description
A side mouse button gets stuck down after dragging with it, and from then on Ghostty reports every pointer movement as a drag with that button held, until the button is clicked again.
The trigger is a drag, not a click: press the side button, move the pointer while holding it, release. After that the release is never reported and the button stays down in the core. A plain click (press and release without movement) is harmless.
This reproduces with an empty configuration, and on both 1.3.1 and 1.4.0. It looks like the same class of bug as #12078 (a lost right-click release) and #10713, and #14752 proposes handling GTK's unpaired-release events.
Expected Behavior
After the button is released, pointer movement is reported as motion with no button held:
CSI < 35 ; Cx ; Cy M.Actual Behavior
Pointer movement is reported as motion with button 9 held, forever:
CSI < 161 ; Cx ; Cy M. From the encoding insrc/input/mouse_encode.zigthat is 32 (motion) + 129 (button nine). NoCSI < 129 ; ... mrelease event is ever sent.Reproduction Steps
printf '\e[?1003h\e[?1006h'; cat -vto enable any-motion tracking with SGR encoding.Ghostty Logs
Nothing is logged during reproduction; the bug is in mouse event encoding.
Ghostty Version
OS Version Information
Slackware 15.0+, kernel 7.3.1-msixcnr
(Linux only) Display Server
X11
(Linux only) Desktop Environment/Window Manager
i3
Minimal Ghostty Configuration
Verified with an empty config file.
Additional Relevant Configuration
none
All reactions