-
Notifications
You must be signed in to change notification settings - Fork 921
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
Add support for setting the IME purpose #2650
Conversation
43573f1
to
b0fc594
Compare
a2e5268
to
497ed37
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.
Orbital code looks good
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.
The API looks fine, though we might want to change IME stuff to do a single apply with some ImeStateUpdate
, so we can utilize the atomicness of some of the underlying APIs.
497ed37
to
631a5e5
Compare
13641c8
to
71f16a6
Compare
71f16a6
to
55065e4
Compare
55065e4
to
a3437b6
Compare
This adds a way to set the purpose for the IME input, implemented only on Wayland for now.
a3437b6
to
9404ffe
Compare
Wayland and macOS support IME purposes. I have implemented it for Wayland only, because I don't have access to macOS. XIM and Windows IMM do not seem to support it. (Although #2614 removes XIM and the successor may support IME purposes.)
This PR adds the purpose
Password
(directly supported by both Wayland and macOS) andTerminal
(needed for alacritty/alacritty#6644). I don't know if it makes sense to support more purposes (for example, all that Wayland supports). TheImePurpose
enum is non exhaustive, so new purposes can be added without breaking change.CHANGELOG.md
if knowledge of this change could be valuable to usersime
example, although theime
example does not work at all on Wayland because no window shows up)