Skip to content
This repository has been archived by the owner on Nov 1, 2021. It is now read-only.

Commit

Permalink
input-method-v2: just destroy the resource in the destroy request
Browse files Browse the repository at this point in the history
  • Loading branch information
tadeokondrak committed Mar 23, 2021
1 parent 24fd50a commit 1dd2f95
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions types/wlr_input_method_v2.c
Original file line number Diff line number Diff line change
Expand Up @@ -186,12 +186,7 @@ static void popup_resource_destroy(struct wl_resource *resource) {

static void popup_destroy(struct wl_client *client,
struct wl_resource *resource) {
struct wlr_input_popup_surface_v2 *popup_surface =
wl_resource_get_user_data(resource);
if (popup_surface == NULL) {
return;
}
popup_surface_destroy(popup_surface);
wl_resource_destroy(resource);
}

static const struct zwp_input_popup_surface_v2_interface input_popup_impl = {
Expand Down

0 comments on commit 1dd2f95

Please sign in to comment.