aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLibravatar xdavidwu <xdavidwuph@gmail.com>2020-01-12 17:28:56 +0800
committerLibravatar Simon Ser <contact@emersion.fr>2020-04-04 11:42:04 +0200
commit4e1e5e4e33a61d883ae30a053da963870d9f8634 (patch)
treeae42335f958bc5e17cf9b0ef7f9450546d4832e3 /include
parentinput-method: avoid and log unneeded set_focus (diff)
downloadsway-4e1e5e4e33a61d883ae30a053da963870d9f8634.tar.gz
sway-4e1e5e4e33a61d883ae30a053da963870d9f8634.tar.zst
sway-4e1e5e4e33a61d883ae30a053da963870d9f8634.zip
im: make text-input listeners per text-input
Diffstat (limited to 'include')
-rw-r--r--include/sway/input/text_input.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/include/sway/input/text_input.h b/include/sway/input/text_input.h
index 4c3b2e07..81915795 100644
--- a/include/sway/input/text_input.h
+++ b/include/sway/input/text_input.h
@@ -25,10 +25,6 @@ struct sway_input_method_relay {
25 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
26 26
27 struct wl_listener text_input_new; 27 struct wl_listener text_input_new;
28 struct wl_listener text_input_enable;
29 struct wl_listener text_input_commit;
30 struct wl_listener text_input_disable;
31 struct wl_listener text_input_destroy;
32 28
33 struct wl_listener input_method_new; 29 struct wl_listener input_method_new;
34 struct wl_listener input_method_commit; 30 struct wl_listener input_method_commit;
@@ -47,6 +43,11 @@ struct sway_text_input {
47 struct wl_list link; 43 struct wl_list link;
48 44
49 struct wl_listener pending_focused_surface_destroy; 45 struct wl_listener pending_focused_surface_destroy;
46
47 struct wl_listener text_input_enable;
48 struct wl_listener text_input_commit;
49 struct wl_listener text_input_disable;
50 struct wl_listener text_input_destroy;
50}; 51};
51 52
52void sway_input_method_relay_init(struct sway_seat *seat, 53void sway_input_method_relay_init(struct sway_seat *seat,