From c302bb4e1a35a2d7002428a87f9393474f155802 Mon Sep 17 00:00:00 2001 From: Hilderin <81109165+Hilderin@users.noreply.github.com> Date: Tue, 12 Dec 2023 16:59:28 -0500 Subject: [PATCH] Fixing the build with MinGW --- src/win32_init.c | 35 +++++++++++++++++------------------ 1 file changed, 17 insertions(+), 18 deletions(-) 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 ////// //////////////////////////////////////////////////////////////////////////