SDL: Fixed text input being active after SDL_StopTextInput() (thanks @AntTheAlchemist!)

From 07c49d1a678b46fc82a4f4174ac6b222a97533d6 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Mon, 25 Mar 2024 06:46:23 -0700
Subject: [PATCH] Fixed text input being active after SDL_StopTextInput()
 (thanks @AntTheAlchemist!)

---
 src/video/SDL_video.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/video/SDL_video.c b/src/video/SDL_video.c
index 5b6b37a19aa2e..3932d880d9fc5 100644
--- a/src/video/SDL_video.c
+++ b/src/video/SDL_video.c
@@ -4817,6 +4817,7 @@ void SDL_StopTextInput(void)
     if (_this->StopTextInput) {
         _this->StopTextInput(_this);
     }
+    _this->text_input_active = SDL_FALSE;
 
     /* Hide the on-screen keyboard, if desired */
     const char *hint = SDL_GetHint(SDL_HINT_ENABLE_SCREEN_KEYBOARD);