aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorFerdinand Bachmann <ferdinand.bachmann@yrlf.at>2025-02-18 22:45:53 +0100
committerSimon Ser <contact@emersion.fr>2025-04-13 23:40:56 +0200
commit53126cdceb6dbf6ee163ca0db960cf3900870075 (patch)
treeed8c41cf3c5655c7f19624a727423831976196d3 /include
parent92c82e6952394b714d7818deb1d46d616a39dfc0 (diff)
input/text_input: remove event listeners on destroy
sway_input_method_relay can be destroyed from two sources, either the seat is destroyed or the manager protocol objects are destroyed due compositor exit. This fixes a crash in wlroots listener checks. See #8509.
Diffstat (limited to 'include')
-rw-r--r--include/sway/input/text_input.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sway/input/text_input.h b/include/sway/input/text_input.h
index 1993f928..1818749a 100644
--- a/include/sway/input/text_input.h
+++ b/include/sway/input/text_input.h
@@ -25,8 +25,10 @@ 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_manager_destroy;
struct wl_listener input_method_new;
+ struct wl_listener input_method_manager_destroy;
struct wl_listener input_method_commit;
struct wl_listener input_method_new_popup_surface;
struct wl_listener input_method_grab_keyboard;