mirror of
https://github.com/microsoft/terminal.git
synced 2025-12-10 00:48:23 -06:00
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:
parent
90a55ed3d9
commit
b6f56d63f5
1
.github/actions/spelling/allow/apis.txt
vendored
1
.github/actions/spelling/allow/apis.txt
vendored
@ -144,6 +144,7 @@ NCHITTEST
|
||||
NCLBUTTONDBLCLK
|
||||
NCMOUSELEAVE
|
||||
NCMOUSEMOVE
|
||||
NCPOINTERUPDATE
|
||||
NCRBUTTONDBLCLK
|
||||
NIF
|
||||
NIN
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user