sdl2-compat: SDL_SetWindowInputFocus returns negative value on failure and 0 on success

From 0570a728b5e233b56d9060c25a5f48ad39f7c197 Mon Sep 17 00:00:00 2001
From: Anonymous Maarten <[EMAIL REDACTED]>
Date: Sun, 16 Mar 2025 22:44:51 +0100
Subject: [PATCH] SDL_SetWindowInputFocus returns negative value on failure and
 0 on success

---
 src/sdl2_compat.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/sdl2_compat.c b/src/sdl2_compat.c
index 7956ba4..dbb3586 100644
--- a/src/sdl2_compat.c
+++ b/src/sdl2_compat.c
@@ -9162,7 +9162,7 @@ SDL_RaiseWindow(SDL_Window *window)
 SDL_DECLSPEC int SDLCALL
 SDL_SetWindowInputFocus(SDL_Window *window)
 {
-    return SDL3_RaiseWindow(window);
+    return SDL3_RaiseWindow(window) ? 0 : -1;
 }
 
 SDL_DECLSPEC void SDLCALL