diff --git a/src/win32_init.c b/src/win32_init.c index 22de0ec1..22848830 100644 --- a/src/win32_init.c +++ b/src/win32_init.c @@ -459,24 +459,6 @@ static void createBlankCursor(void) } -// Initialize for remote sessions -// -static void initRemoteSession(void) -{ - //Check if the current progress was started with Remote Desktop. - _glfw.win32.isRemoteSession = isCurrentRemoteSession(); - - //With Remote desktop, we need to create a blank cursor because of the cursor is Set to NULL - //if cannot be moved to center in capture mode. If not Remote Desktop win32.blankCursor stays NULL - //and will perform has before (normal). - if (_glfw.win32.isRemoteSession) - { - createBlankCursor(); - } - -} - - // Check if the session was started in Remote Desktop // Reference: https://learn.microsoft.com/en-us/windows/win32/termserv/detecting-the-terminal-services-environment static BOOL isCurrentRemoteSession() @@ -536,6 +518,23 @@ static BOOL isCurrentRemoteSession() } +// Initialize for remote sessions +// +static void initRemoteSession(void) +{ + //Check if the current progress was started with Remote Desktop. + _glfw.win32.isRemoteSession = isCurrentRemoteSession(); + + //With Remote desktop, we need to create a blank cursor because of the cursor is Set to NULL + //if cannot be moved to center in capture mode. If not Remote Desktop win32.blankCursor stays NULL + //and will perform has before (normal). + if (_glfw.win32.isRemoteSession) + { + createBlankCursor(); + } + +} + ////////////////////////////////////////////////////////////////////////// ////// GLFW internal API ////// //////////////////////////////////////////////////////////////////////////