From 80d5c638ceaa2e2be3379db60ff33474afc0fefc Mon Sep 17 00:00:00 2001 From: Ansariel Date: Wed, 13 Sep 2017 20:08:40 +0200 Subject: [PATCH] Respect "Hide pointer while typing" Windows preference setting --- indra/llwindow/llwindowwin32.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/indra/llwindow/llwindowwin32.cpp b/indra/llwindow/llwindowwin32.cpp index 6fe3b8e8cc..b7f7aa9726 100644 --- a/indra/llwindow/llwindowwin32.cpp +++ b/indra/llwindow/llwindowwin32.cpp @@ -1685,7 +1685,11 @@ void LLWindowWin32::showCursorFromMouseMove() void LLWindowWin32::hideCursorUntilMouseMove() { - if (!mHideCursorPermanent) + // Respect "Hide pointer while typing" Windows preference setting + //if (!mHideCursorPermanent) + BOOL mouse_manish = FALSE; + if (!mHideCursorPermanent && (!SystemParametersInfo(SPI_GETMOUSEVANISH, 0, &mouse_manish, 0) || mouse_manish)) + // { hideCursor(); mHideCursorPermanent = FALSE;