SDL: Fixed IME cursor location (thanks @zturtleman!)

From c347bee7b872908dfd8b773e44f718f077d9e977 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Fri, 5 Jul 2024 12:32:50 -0700
Subject: [PATCH] Fixed IME cursor location (thanks @zturtleman!)

---
 src/core/linux/SDL_fcitx.c | 2 +-
 src/core/linux/SDL_ibus.c  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/core/linux/SDL_fcitx.c b/src/core/linux/SDL_fcitx.c
index f7c836e1fd1ec..8efa305561f82 100644
--- a/src/core/linux/SDL_fcitx.c
+++ b/src/core/linux/SDL_fcitx.c
@@ -413,7 +413,7 @@ void SDL_Fcitx_UpdateTextInputArea(SDL_Window *window)
 
     // We'll use a square at the text input cursor location for the cursor_rect
     cursor->x = window->text_input_rect.x + window->text_input_cursor;
-    cursor->y = window->text_input_rect.x;
+    cursor->y = window->text_input_rect.y;
     cursor->w = window->text_input_rect.h;
     cursor->h = window->text_input_rect.h;
 
diff --git a/src/core/linux/SDL_ibus.c b/src/core/linux/SDL_ibus.c
index 305395430880d..dfaab70a665c0 100644
--- a/src/core/linux/SDL_ibus.c
+++ b/src/core/linux/SDL_ibus.c
@@ -694,7 +694,7 @@ void SDL_IBus_UpdateTextInputArea(SDL_Window *window)
 
     // We'll use a square at the text input cursor location for the ibus_cursor
     ibus_cursor_rect.x = window->text_input_rect.x + window->text_input_cursor;
-    ibus_cursor_rect.y = window->text_input_rect.x;
+    ibus_cursor_rect.y = window->text_input_rect.y;
     ibus_cursor_rect.w = window->text_input_rect.h;
     ibus_cursor_rect.h = window->text_input_rect.h;