From 88acac053aed632976b4687fd815ba1a1a883350 Mon Sep 17 00:00:00 2001
From: Frank Praznik <[EMAIL REDACTED]>
Date: Sun, 12 Apr 2026 12:55:32 -0400
Subject: [PATCH] wayland: Enable text input even when the text input protocol
is not available.
Even without the text input protocol, basic text can still be obtained from individual keys and the composition system.
(cherry picked from commit dd6d49afbdc0a93d46e3b0be9797b129991bd5a2)
---
src/video/wayland/SDL_waylandkeyboard.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/src/video/wayland/SDL_waylandkeyboard.c b/src/video/wayland/SDL_waylandkeyboard.c
index 4478b2b9e3916..f604a7e3dfd7c 100644
--- a/src/video/wayland/SDL_waylandkeyboard.c
+++ b/src/video/wayland/SDL_waylandkeyboard.c
@@ -183,11 +183,12 @@ bool Wayland_StartTextInput(SDL_VideoDevice *_this, SDL_Window *window, SDL_Prop
Wayland_SeatUpdateTextInput(seat);
}
}
-
- return true;
}
- return SDL_SetError("wayland: cannot enable text input; compositor lacks support for the required zwp_text_input_v3 protocol");
+ /* Always return true, even if the text input protocol isn't supported, as basic
+ * text can still be obtained from individual keys and composition system.
+ */
+ return true;
}
bool Wayland_StopTextInput(SDL_VideoDevice *_this, SDL_Window *window)