From 4e1e5e4e33a61d883ae30a053da963870d9f8634 Mon Sep 17 00:00:00 2001 From: xdavidwu Date: Sun, 12 Jan 2020 17:28:56 +0800 Subject: im: make text-input listeners per text-input --- include/sway/input/text_input.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'include') 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 { struct wlr_input_method_v2 *input_method; // doesn't have to be present struct wl_listener text_input_new; - struct wl_listener text_input_enable; - struct wl_listener text_input_commit; - struct wl_listener text_input_disable; - struct wl_listener text_input_destroy; struct wl_listener input_method_new; struct wl_listener input_method_commit; @@ -47,6 +43,11 @@ struct sway_text_input { struct wl_list link; struct wl_listener pending_focused_surface_destroy; + + struct wl_listener text_input_enable; + struct wl_listener text_input_commit; + struct wl_listener text_input_disable; + struct wl_listener text_input_destroy; }; void sway_input_method_relay_init(struct sway_seat *seat, -- cgit v1.2.3-54-g00ecf