SDL: SDL takes care of handling mouse relative mode on focus change

From 0cc61b27a2f61364439a1777744397bb19e56d38 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Mon, 10 Jun 2024 14:55:41 -0700
Subject: [PATCH] SDL takes care of handling mouse relative mode on focus
 change

---
 test/testwm.c | 11 -----------
 1 file changed, 11 deletions(-)

diff --git a/test/testwm.c b/test/testwm.c
index 776ab91cfec18..b3a3905e630fe 100644
--- a/test/testwm.c
+++ b/test/testwm.c
@@ -187,17 +187,6 @@ static void loop(void)
                         SDL_GetDisplayName(SDL_GetDisplayForWindow(window)));
             }
         }
-        if (event.type == SDL_EVENT_WINDOW_FOCUS_LOST) {
-            relative_mode = SDL_GetRelativeMouseMode();
-            if (relative_mode) {
-                SDL_SetRelativeMouseMode(SDL_FALSE);
-            }
-        }
-        if (event.type == SDL_EVENT_WINDOW_FOCUS_GAINED) {
-            if (relative_mode) {
-                SDL_SetRelativeMouseMode(SDL_TRUE);
-            }
-        }
         if (event.type == SDL_EVENT_KEY_UP) {
             SDL_bool updateCursor = SDL_FALSE;