From 1ccbacf198a031f38b370d799c78800d7e2bb323 Mon Sep 17 00:00:00 2001 From: Jente Hidskes Date: Mon, 24 Feb 2020 20:07:36 +0100 Subject: [PATCH] output: set pointer to cg_output in wlr_output->data This will be used later in the layer shell implementation. --- output.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/output.c b/output.c index 0577c0d..30d4bcf 100644 --- a/output.c +++ b/output.c @@ -1,7 +1,7 @@ /* * Cage: A Wayland kiosk. * - * Copyright (C) 2018-2020 Jente Hidskes + * Copyright (C) 2018-2021 Jente Hidskes * Copyright (C) 2019 The Sway authors * * See the LICENSE file accompanying this file. @@ -138,6 +138,8 @@ output_destroy(struct cg_output *output) { struct cg_server *server = output->server; + output->wlr_output->data = NULL; + wl_list_remove(&output->destroy.link); wl_list_remove(&output->commit.link); wl_list_remove(&output->mode.link); @@ -188,6 +190,7 @@ handle_new_output(struct wl_listener *listener, void *data) } output->wlr_output = wlr_output; + wlr_output->data = output; output->server = server; wl_list_insert(&server->outputs, &output->link);