From 536100488fc4c64528786801860f96cfa1a55765 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guido=20G=C3=BCnther?= Date: Thu, 10 Apr 2025 14:43:03 +0200 Subject: [PATCH] text-input-v3: Name new text input event correctly MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Helps: https://gitlab.freedesktop.org/wlroots/wlroots/-/issues/3851 Signed-off-by: Guido Günther --- include/wlr/types/wlr_text_input_v3.h | 2 +- types/wlr_text_input_v3.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/wlr/types/wlr_text_input_v3.h b/include/wlr/types/wlr_text_input_v3.h index 4bc4dbbd9..f9eb1d7ed 100644 --- a/include/wlr/types/wlr_text_input_v3.h +++ b/include/wlr/types/wlr_text_input_v3.h @@ -74,7 +74,7 @@ struct wlr_text_input_manager_v3 { struct wl_list text_inputs; // wlr_text_input_v3.link struct { - struct wl_signal text_input; // struct wlr_text_input_v3 + struct wl_signal new_text_input; // struct wlr_text_input_v3 struct wl_signal destroy; // struct wlr_text_input_manager_v3 } events; diff --git a/types/wlr_text_input_v3.c b/types/wlr_text_input_v3.c index 6c9f07964..1b1ea4df9 100644 --- a/types/wlr_text_input_v3.c +++ b/types/wlr_text_input_v3.c @@ -287,7 +287,7 @@ static void text_input_manager_get_text_input(struct wl_client *client, text_input_manager_from_resource(resource); wl_list_insert(&manager->text_inputs, &text_input->link); - wl_signal_emit_mutable(&manager->events.text_input, text_input); + wl_signal_emit_mutable(&manager->events.new_text_input, text_input); } static const struct zwp_text_input_manager_v3_interface @@ -315,7 +315,7 @@ static void handle_display_destroy(struct wl_listener *listener, void *data) { wl_container_of(listener, manager, display_destroy); wl_signal_emit_mutable(&manager->events.destroy, manager); - assert(wl_list_empty(&manager->events.text_input.listener_list)); + assert(wl_list_empty(&manager->events.new_text_input.listener_list)); assert(wl_list_empty(&manager->events.destroy.listener_list)); wl_list_remove(&manager->display_destroy.link); @@ -332,7 +332,7 @@ struct wlr_text_input_manager_v3 *wlr_text_input_manager_v3_create( wl_list_init(&manager->text_inputs); - wl_signal_init(&manager->events.text_input); + wl_signal_init(&manager->events.new_text_input); wl_signal_init(&manager->events.destroy); manager->global = wl_global_create(display,