aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--backend/wayland/output.c2
1 files changed, 1 insertions, 1 deletions
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 = {