text_input: Implement input-method popups

Co-authored-by: tadeokondrak <me@tadeo.ca>
This commit is contained in:
Access 2024-02-20 17:53:20 +08:00 committed by GitHub
parent d19810eba8
commit 7c11c463a3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 253 additions and 1 deletions

View file

@ -21,18 +21,21 @@ struct sway_input_method_relay {
struct sway_seat *seat;
struct wl_list text_inputs; // sway_text_input::link
struct wl_list input_popups; // sway_input_popup::link
struct wlr_input_method_v2 *input_method; // doesn't have to be present
struct wl_listener text_input_new;
struct wl_listener input_method_new;
struct wl_listener input_method_commit;
struct wl_listener input_method_new_popup_surface;
struct wl_listener input_method_grab_keyboard;
struct wl_listener input_method_destroy;
struct wl_listener input_method_keyboard_grab_destroy;
};
struct sway_text_input {
struct sway_input_method_relay *relay;