Skip to content

Commit

Permalink
FsShowMouseCursor(0) for Win32 decreases mouse cursor count down to -…
Browse files Browse the repository at this point in the history
…2 to assure the cursor does not occasionally pop up.
  • Loading branch information
captainys committed Nov 30, 2023
1 parent b10faa9 commit 20a9b08
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/fssimplewindow/src/windows/fswin32wrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1202,7 +1202,10 @@ void FsShowMouseCursor(int showFlag)
}
else
{
while(0<=ShowCursor(FALSE));
// 2023/11/30
// Something occasionally increases the cursor count and decrease again.
// I need to decrement to -1 to assure the cursor is hidden all the time.
while(-1<=ShowCursor(FALSE));
}
}

Expand Down

0 comments on commit 20a9b08

Please # to comment.