[PR #3024] [MERGED] Simplify non-client hit testing in NCIslandWindow to fix doubleclick #25212

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/3024
Author: @DHowett-MSFT
Created: 10/2/2019
Status: Merged
Merged: 10/2/2019
Merged by: @carlos-zamora

Base: masterHead: dev/duhowett/minmax-2


📝 Commits (1)

  • 45460be Simplify non-client hit testing in NCIslandWindow to fix doubleclick

📊 Changes

2 files changed (+15 additions, -27 deletions)

View changed files

📝 src/cascadia/WindowsTerminal/NonClientIslandWindow.cpp (+14 -26)
📝 src/cascadia/WindowsTerminal/NonClientIslandWindow.h (+1 -1)

📄 Description

It turns out that our WM_LBUTTONDOWN handler wasn't even necessary, as
our NCHITTEST tells win32 that all of the titlebar is actually
non-client area. This brings the code in line with
NonNonClientIslandWindow.

Fixes #2513

Validation Steps Performed

Went wild with the clicking and dragging.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/microsoft/terminal/pull/3024 **Author:** [@DHowett-MSFT](https://github.com/DHowett-MSFT) **Created:** 10/2/2019 **Status:** ✅ Merged **Merged:** 10/2/2019 **Merged by:** [@carlos-zamora](https://github.com/carlos-zamora) **Base:** `master` ← **Head:** `dev/duhowett/minmax-2` --- ### 📝 Commits (1) - [`45460be`](https://github.com/microsoft/terminal/commit/45460bed3de3243ec50a0d7857f5ddd71eebefcb) Simplify non-client hit testing in NCIslandWindow to fix doubleclick ### 📊 Changes **2 files changed** (+15 additions, -27 deletions) <details> <summary>View changed files</summary> 📝 `src/cascadia/WindowsTerminal/NonClientIslandWindow.cpp` (+14 -26) 📝 `src/cascadia/WindowsTerminal/NonClientIslandWindow.h` (+1 -1) </details> ### 📄 Description It turns out that our WM_LBUTTONDOWN handler wasn't even necessary, as our NCHITTEST tells win32 that all of the titlebar is actually non-client area. This brings the code in line with NonNonClientIslandWindow. Fixes #2513 ## Validation Steps Performed Went wild with the clicking and dragging. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-31 09:08:00 +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#25212