[PR #10138] Pass through double clicks and hover events in Win32 mouse mode #27920

Open
opened 2026-01-31 09:25:09 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/microsoft/terminal/pull/10138

State: closed
Merged: Yes


Each mouse-down event's time and position is now stored, and if we
process a left-mouse-down event at the same position as the previous one
and within the double click time we set the double click flag.

Also adds a case statement to _UpdateSGRMouseButtonState so that we
send hover events instead of ignoring them.

Note: The 'right-click menu in far manager shows up at the wrong
location' bug still exists with this, as it seems to use the cursor
position as told by user32.

Related to #376

Validation Steps Performed

Double click in far manager works, hover in far manager works (hovering
over items in the right-click menu correctly highlights them)

**Original Pull Request:** https://github.com/microsoft/terminal/pull/10138 **State:** closed **Merged:** Yes --- Each mouse-down event's time and position is now stored, and if we process a left-mouse-down event at the same position as the previous one and within the double click time we set the double click flag. Also adds a case statement to `_UpdateSGRMouseButtonState` so that we send hover events instead of ignoring them. Note: The 'right-click menu in far manager shows up at the wrong location' bug still exists with this, as it seems to use the cursor position as told by user32. Related to #376 ## Validation Steps Performed Double click in far manager works, hover in far manager works (hovering over items in the right-click menu correctly highlights them)
claunia added the pull-request label 2026-01-31 09:25:09 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#27920