From 70c99460ca66cc257094fb1e34e59b9ce6f9cb5f Mon Sep 17 00:00:00 2001 From: Kirill Primak Date: Thu, 8 Aug 2024 17:55:26 +0300 Subject: [PATCH] pointer-constraints: don't init/finish current/pending states wlr_surface_synced does it automatically. Reported-by: llyyr --- types/wlr_pointer_constraints_v1.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/types/wlr_pointer_constraints_v1.c b/types/wlr_pointer_constraints_v1.c index f3c8fb74..07803729 100644 --- a/types/wlr_pointer_constraints_v1.c +++ b/types/wlr_pointer_constraints_v1.c @@ -53,8 +53,6 @@ static void pointer_constraint_destroy(struct wlr_pointer_constraint_v1 *constra wl_list_remove(&constraint->surface_commit.link); wl_list_remove(&constraint->surface_destroy.link); wl_list_remove(&constraint->seat_destroy.link); - pixman_region32_fini(&constraint->current.region); - pixman_region32_fini(&constraint->pending.region); pixman_region32_fini(&constraint->region); free(constraint); } @@ -258,9 +256,6 @@ static void pointer_constraint_create(struct wl_client *client, pixman_region32_init(&constraint->region); - pixman_region32_init(&constraint->pending.region); - pixman_region32_init(&constraint->current.region); - pointer_constraint_set_region(constraint, region_resource); pointer_constraint_commit(constraint);