From d55f95f056a2a435284ee17e0b579fc3544886c8 Mon Sep 17 00:00:00 2001 From: Brad Smith Date: Sat, 4 May 2024 09:10:57 -0400 Subject: [PATCH] Windows mouse ungrab must release the mouse instead of confine it to the current desktop (#16488) * Windows mouse ungrab should release the cursor, instead of confining it to the current screen. * conform to style --- gfx/common/win32_common.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gfx/common/win32_common.c b/gfx/common/win32_common.c index 7faa5b86c9..7c48730d2a 100644 --- a/gfx/common/win32_common.c +++ b/gfx/common/win32_common.c @@ -1958,11 +1958,11 @@ void win32_clip_window(bool state) free(info); } info = NULL; + + ClipCursor(&clip_rect); } else - GetWindowRect(GetDesktopWindow(), &clip_rect); - - ClipCursor(&clip_rect); + ClipCursor(NULL); } #endif