diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/sway/input/text_input.h | 3 | ||||
-rw-r--r-- | include/sway/input/text_input_popup.h | 20 |
2 files changed, 23 insertions, 0 deletions
diff --git a/include/sway/input/text_input.h b/include/sway/input/text_input.h index 214e61d1..1993f928 100644 --- a/include/sway/input/text_input.h +++ b/include/sway/input/text_input.h | |||
@@ -21,18 +21,21 @@ struct sway_input_method_relay { | |||
21 | struct sway_seat *seat; | 21 | struct sway_seat *seat; |
22 | 22 | ||
23 | struct wl_list text_inputs; // sway_text_input::link | 23 | struct wl_list text_inputs; // sway_text_input::link |
24 | struct wl_list input_popups; // sway_input_popup::link | ||
24 | struct wlr_input_method_v2 *input_method; // doesn't have to be present | 25 | struct wlr_input_method_v2 *input_method; // doesn't have to be present |
25 | 26 | ||
26 | struct wl_listener text_input_new; | 27 | struct wl_listener text_input_new; |
27 | 28 | ||
28 | struct wl_listener input_method_new; | 29 | struct wl_listener input_method_new; |
29 | struct wl_listener input_method_commit; | 30 | struct wl_listener input_method_commit; |
31 | struct wl_listener input_method_new_popup_surface; | ||
30 | struct wl_listener input_method_grab_keyboard; | 32 | struct wl_listener input_method_grab_keyboard; |
31 | struct wl_listener input_method_destroy; | 33 | struct wl_listener input_method_destroy; |
32 | 34 | ||
33 | struct wl_listener input_method_keyboard_grab_destroy; | 35 | struct wl_listener input_method_keyboard_grab_destroy; |
34 | }; | 36 | }; |
35 | 37 | ||
38 | |||
36 | struct sway_text_input { | 39 | struct sway_text_input { |
37 | struct sway_input_method_relay *relay; | 40 | struct sway_input_method_relay *relay; |
38 | 41 | ||
diff --git a/include/sway/input/text_input_popup.h b/include/sway/input/text_input_popup.h new file mode 100644 index 00000000..e5f6ab8b --- /dev/null +++ b/include/sway/input/text_input_popup.h | |||
@@ -0,0 +1,20 @@ | |||
1 | #ifndef _SWAY_INPUT_TEXT_INPUT_POPUP_H | ||
2 | #define _SWAY_INPUT_TEXT_INPUT_POPUP_H | ||
3 | |||
4 | #include "sway/tree/view.h" | ||
5 | |||
6 | struct sway_input_popup { | ||
7 | struct sway_input_method_relay *relay; | ||
8 | |||
9 | struct wlr_scene_tree *scene_tree; | ||
10 | struct sway_popup_desc desc; | ||
11 | struct wlr_input_popup_surface_v2 *popup_surface; | ||
12 | |||
13 | struct wl_list link; | ||
14 | |||
15 | struct wl_listener popup_destroy; | ||
16 | struct wl_listener popup_surface_commit; | ||
17 | |||
18 | struct wl_listener focused_surface_unmap; | ||
19 | }; | ||
20 | #endif | ||