Skip to content

Commit 51dfca8

Browse files
raiguardslouken
authored andcommitted
Pass text input rect to steam deck keyboard invocation
1 parent 520d73a commit 51dfca8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/video/x11/SDL_x11keyboard.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -762,7 +762,9 @@ void X11_ShowScreenKeyboard(SDL_VideoDevice *_this, SDL_Window *window, SDL_Prop
762762
break;
763763
}
764764
(void)SDL_snprintf(deeplink, sizeof(deeplink),
765-
"steam://open/keyboard?XPosition=0&YPosition=0&Width=0&Height=0&Mode=%d",
765+
"steam://open/keyboard?XPosition=%i&YPosition=%i&Width=%i&Height=%i&Mode=%d",
766+
window->text_input_rect.x, window->text_input_rect.y,
767+
window->text_input_rect.w, window->text_input_rect.h,
766768
mode);
767769
SDL_OpenURL(deeplink);
768770
videodata->steam_keyboard_open = true;

0 commit comments

Comments
 (0)