SDL: Pass text input rect to steam deck keyboard invocation

From 51dfca813b6c02746c782a1b1f194cde82e9dbb2 Mon Sep 17 00:00:00 2001
From: Caleb Heuer <[EMAIL REDACTED]>
Date: Fri, 30 May 2025 13:52:54 +0200
Subject: [PATCH] Pass text input rect to steam deck keyboard invocation

---
 src/video/x11/SDL_x11keyboard.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/video/x11/SDL_x11keyboard.c b/src/video/x11/SDL_x11keyboard.c
index cff0788964d4c..8406f4867136a 100644
--- a/src/video/x11/SDL_x11keyboard.c
+++ b/src/video/x11/SDL_x11keyboard.c
@@ -762,7 +762,9 @@ void X11_ShowScreenKeyboard(SDL_VideoDevice *_this, SDL_Window *window, SDL_Prop
             break;
         }
         (void)SDL_snprintf(deeplink, sizeof(deeplink),
-                           "steam://open/keyboard?XPosition=0&YPosition=0&Width=0&Height=0&Mode=%d",
+                           "steam://open/keyboard?XPosition=%i&YPosition=%i&Width=%i&Height=%i&Mode=%d",
+                           window->text_input_rect.x, window->text_input_rect.y,
+                           window->text_input_rect.w, window->text_input_rect.h,
                            mode);
         SDL_OpenURL(deeplink);
         videodata->steam_keyboard_open = true;