From 7b50f5d3249173d93736d6e2a3c6f61e86b367bd Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Fri, 29 Jan 2021 12:12:30 +0100 Subject: [PATCH] backend/wayland: remove unnecessary cast --- backend/wayland/output.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/wayland/output.c b/backend/wayland/output.c index e9353aa3..df8403ba 100644 --- a/backend/wayland/output.c +++ b/backend/wayland/output.c @@ -559,7 +559,7 @@ static void xdg_toplevel_handle_close(void *data, struct wlr_wl_output *output = data; assert(output && output->xdg_toplevel == xdg_toplevel); - wlr_output_destroy((struct wlr_output *)output); + wlr_output_destroy(&output->wlr_output); } static struct xdg_toplevel_listener xdg_toplevel_listener = {