-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
video/out/wayland_common: support IME usage via text-input-v3 #15707
Conversation
Download the artifacts for this pull request: |
The amount of utf-8 characters that get added to the console.lua prompt seems to be a maximum of 7 for me. If the commit string is submitted while the console is hidden, log messages Similar happens with win32 on wine, though only when the video is playing, and the amount of characters that get added to the prompt differs randomly. If the video is paused, all characters get added to the console prompt. |
The limit can be changed with --input-key-fifo-size. |
Ah, that fixes it. Thanks. |
d57b12a
to
2bb73ab
Compare
2bb73ab
to
7b9ad9f
Compare
Just adding this makes runtime toggling work more intuitively.
Probably just split off the enable/disable stuff into separate functions to avoid code duplication. |
7b9ad9f
to
d00b234
Compare
Thanks, added this change. For me, when I enable it with a command while not having the surface focused, the compositor doesn't enable the IME when I enable it again on the next enter event (then on the next enter event after that, the compositor enables the IME). So I won't enable it whilst not having focus since that seems to cause issues, and is redundant as it will be enabled on the coming enter event. |
Ah that's logical. I didn't test that specific case. I think this takes care of all the functionality now. |
d00b234
to
0dee081
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry I forgot but could you also add an entry under interface-changes
documenting the addition?
0dee081
to
1638d27
Compare
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).
1638d27
to
de5cdb0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks again.
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 --wayland-ime=<yes|no> (default: yes).