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.
This commit is contained in:
Leonard Hecker 2025-05-14 19:25:20 +02:00 committed by GitHub
parent 69fc2d94ee
commit 4d094df508
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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);