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 4d094df5080dcf9e58aa76e8a255ca6ace0ddf60)
Service-Card-Id: PVTI_lADOAF3p4s4AxadtzgaZJvk
Service-Version: 1.23
This commit is contained in:
Leonard Hecker 2025-05-14 19:25:20 +02:00 committed by Dustin L. Howett
parent 90a55ed3d9
commit b6f56d63f5
2 changed files with 5 additions and 1 deletions

View File

@ -144,6 +144,7 @@ NCHITTEST
NCLBUTTONDBLCLK
NCMOUSELEAVE
NCMOUSEMOVE
NCPOINTERUPDATE
NCRBUTTONDBLCLK
NIF
NIN

View File

@ -61,7 +61,10 @@ void IslandWindow::HideCursor() noexcept
void IslandWindow::ShowCursorMaybe(const UINT message) noexcept
{
if (_cursorHidden && (message == WM_ACTIVATE || message == WM_POINTERUPDATE))
if (_cursorHidden &&
(message == WM_ACTIVATE ||
message == WM_POINTERUPDATE ||
message == WM_NCPOINTERUPDATE))
{
_cursorHidden = false;
ShowCursor(TRUE);