The binding is only used for preventing launch, and we've already got the pid for that.
With multiple seats there are multiple bindings, so if the most recent binding unbinds it will clear the pointer, so using it like this is risky anyway. Signed-off-by: Derek Foreman <[email protected]> --- src/text-backend.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/text-backend.c b/src/text-backend.c index 397c51b..59011c8 100644 --- a/src/text-backend.c +++ b/src/text-backend.c @@ -100,7 +100,6 @@ struct text_backend { struct { char *path; - struct wl_resource *binding; struct weston_process process; struct wl_client *client; @@ -830,12 +829,9 @@ static void unbind_input_method(struct wl_resource *resource) { struct input_method *input_method = wl_resource_get_user_data(resource); - struct text_backend *text_backend = input_method->text_backend; input_method->input_method_binding = NULL; input_method->context = NULL; - - text_backend->input_method.binding = NULL; } static void @@ -869,8 +865,6 @@ bind_input_method(struct wl_client *client, wl_resource_set_implementation(resource, NULL, input_method, unbind_input_method); input_method->input_method_binding = resource; - - text_backend->input_method.binding = resource; } static void @@ -954,9 +948,6 @@ handle_input_method_sigchld(struct weston_process *process, int status) static void launch_input_method(struct text_backend *text_backend) { - if (text_backend->input_method.binding) - return; - if (!text_backend->input_method.path) return; -- 2.1.4 _______________________________________________ wayland-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/wayland-devel
