diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2025-02-18 22:45:53 +0100 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2025-02-18 22:45:53 +0100 |
| commit | bf9da7ea90f87e5a66aebe762be2c816a3d5ccf5 (patch) | |
| tree | ed8c41cf3c5655c7f19624a727423831976196d3 /include | |
| parent | 7eebf314d6a4ceb93a7d0b1713ac1f519aa0d3be (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.h | 2 |
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; |
