SDL: Note that the cursor clip has been cleared even if we didn't do it

From 16e0806ced521396b1564a314d2396134fddc19b Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Fri, 8 Mar 2024 15:54:37 -0800
Subject: [PATCH] Note that the cursor clip has been cleared even if we didn't
 do it

This releases the mouse cursor when bringing up the console on Counter Strike in dev mode.
---
 src/video/windows/SDL_windowswindow.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/video/windows/SDL_windowswindow.c b/src/video/windows/SDL_windowswindow.c
index 572ee376dbefb..60a2c3c8f0622 100644
--- a/src/video/windows/SDL_windowswindow.c
+++ b/src/video/windows/SDL_windowswindow.c
@@ -1577,8 +1577,9 @@ void WIN_UpdateClipCursor(SDL_Window *window)
         if (PtInRect(&data->cursor_clipped_rect, first) &&
             PtInRect(&data->cursor_clipped_rect, second)) {
             ClipCursor(NULL);
-            SDL_zero(data->cursor_clipped_rect);
         }
+        /* Note that we don't have the cursor clipped anymore, even if it's not us that reset it */
+        SDL_zero(data->cursor_clipped_rect);
     }
     data->last_updated_clipcursor = SDL_GetTicks();
 }