mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-29 05:40:12 -04:00
input-method: rename input_method event to new_input_method
This commit is contained in:
parent
0166fd9eb7
commit
06aacb2a6f
2 changed files with 4 additions and 4 deletions
|
|
@ -94,7 +94,7 @@ struct wlr_input_method_manager_v2 {
|
|||
struct wl_list input_methods; // struct wlr_input_method_v2.link
|
||||
|
||||
struct {
|
||||
struct wl_signal input_method; // struct wlr_input_method_v2
|
||||
struct wl_signal new_input_method; // struct wlr_input_method_v2
|
||||
struct wl_signal destroy; // struct wlr_input_method_manager_v2
|
||||
} events;
|
||||
|
||||
|
|
|
|||
|
|
@ -575,7 +575,7 @@ static void manager_get_input_method(struct wl_client *client,
|
|||
wl_resource_set_user_data(im_resource, input_method);
|
||||
wl_list_insert(&im_manager->input_methods,
|
||||
wl_resource_get_link(input_method->resource));
|
||||
wl_signal_emit_mutable(&im_manager->events.input_method, input_method);
|
||||
wl_signal_emit_mutable(&im_manager->events.new_input_method, input_method);
|
||||
}
|
||||
|
||||
static void manager_destroy(struct wl_client *client,
|
||||
|
|
@ -608,7 +608,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.input_method.listener_list));
|
||||
assert(wl_list_empty(&manager->events.new_input_method.listener_list));
|
||||
assert(wl_list_empty(&manager->events.destroy.listener_list));
|
||||
|
||||
wl_list_remove(&manager->display_destroy.link);
|
||||
|
|
@ -623,7 +623,7 @@ struct wlr_input_method_manager_v2 *wlr_input_method_manager_v2_create(
|
|||
return NULL;
|
||||
}
|
||||
|
||||
wl_signal_init(&im_manager->events.input_method);
|
||||
wl_signal_init(&im_manager->events.new_input_method);
|
||||
wl_signal_init(&im_manager->events.destroy);
|
||||
|
||||
wl_list_init(&im_manager->input_methods);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue