mirror of
https://github.com/swaywm/sway.git
synced 2026-04-20 06:47:03 -04:00
chore: remove unused listener when im destoryed
This commit is contained in:
parent
329c2a74e9
commit
4790391a02
1 changed files with 1 additions and 0 deletions
|
|
@ -109,6 +109,7 @@ static void handle_im_destroy(struct wl_listener *listener, void *data) {
|
||||||
input_method_destroy);
|
input_method_destroy);
|
||||||
struct wlr_input_method_v2 *context = data;
|
struct wlr_input_method_v2 *context = data;
|
||||||
assert(context == relay->input_method);
|
assert(context == relay->input_method);
|
||||||
|
wl_list_remove(&relay->input_method_new_popup_surface.link);
|
||||||
relay->input_method = NULL;
|
relay->input_method = NULL;
|
||||||
struct sway_text_input *text_input = relay_get_focused_text_input(relay);
|
struct sway_text_input *text_input = relay_get_focused_text_input(relay);
|
||||||
if (text_input) {
|
if (text_input) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue