video/out/wayland_common: support IME usage via text-input-v3

This is useful for text input in, for example, console.lua. Each
character in the commit string gets turned into an mpv key press.
Pre-edit strings are not handled, since there's currently no good way to
handle that or make it useful to text input scripts. Like win32, which I
tested in wine, another limitation is that the composition window is
always positioned at the top left of the window, since we cannot get
useful positioning hints from mpv scripts. It allows the composition
window to be within the window and avoids obstructing the console
prompt.

This can be enabled/disabled with --input-ime=<yes|no> (default: yes).
This commit is contained in:
Attila Fidan
2025-01-18 23:30:13 +00:00
committed by Dudemanguy
parent 14520229da
commit 51dc6286b6
7 changed files with 157 additions and 0 deletions

View File

@@ -0,0 +1 @@
add `--input-ime` to enable or disable the IME on supported VOs (Wayland)