swc

Unnamed repository; edit this file 'description' to name the repository.
git clone git://git.nihaljere.xyz/swc
Log | Files | Refs | README | LICENSE

commit bafe1eb64ff270eadd4a09cc932dc891fbe6e280
parent 8cf6b8030797499d870a234010b6c87bed17ac2d
Author: Michael Forney <mforney@mforney.org>
Date:   Sat, 22 Feb 2020 02:03:42 -0800

xdg_decoration: Use the right resource for destroy listener

Diffstat:
Mlibswc/xdg_decoration.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libswc/xdg_decoration.c b/libswc/xdg_decoration.c @@ -67,7 +67,7 @@ get_toplevel_decoration(struct wl_client *client, struct wl_resource *resource, if (!decoration->resource) goto error1; decoration->toplevel_destroy_listener.notify = &handle_toplevel_destroy; - wl_resource_add_destroy_listener(decoration->resource, &decoration->toplevel_destroy_listener); + wl_resource_add_destroy_listener(toplevel_resource, &decoration->toplevel_destroy_listener); wl_resource_set_implementation(decoration->resource, &decoration_impl, NULL, NULL); zxdg_toplevel_decoration_v1_send_configure(decoration->resource, ZXDG_TOPLEVEL_DECORATION_V1_MODE_SERVER_SIDE); return;