Skip to content

Commit b6f56d6

Browse files
lheckerDHowett
authored andcommitted
Fix one source of mouse vanishing (#18911)
When the cursor is over the non-client area it wouldn't show the cursor when moving it. Now it works as expected. (cherry picked from commit 4d094df) Service-Card-Id: PVTI_lADOAF3p4s4AxadtzgaZJvk Service-Version: 1.23
1 parent 90a55ed commit b6f56d6

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/actions/spelling/allow/apis.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ NCHITTEST
144144
NCLBUTTONDBLCLK
145145
NCMOUSELEAVE
146146
NCMOUSEMOVE
147+
NCPOINTERUPDATE
147148
NCRBUTTONDBLCLK
148149
NIF
149150
NIN

src/cascadia/WindowsTerminal/IslandWindow.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,10 @@ void IslandWindow::HideCursor() noexcept
6161

6262
void IslandWindow::ShowCursorMaybe(const UINT message) noexcept
6363
{
64-
if (_cursorHidden && (message == WM_ACTIVATE || message == WM_POINTERUPDATE))
64+
if (_cursorHidden &&
65+
(message == WM_ACTIVATE ||
66+
message == WM_POINTERUPDATE ||
67+
message == WM_NCPOINTERUPDATE))
6568
{
6669
_cursorHidden = false;
6770
ShowCursor(TRUE);

0 commit comments

Comments
 (0)