commit bafe1eb
Michael Forney
·
2020-02-22 10:03:42 +0000 UTC
parent 8cf6b80
xdg_decoration: Use the right resource for destroy listener
1 files changed,
+1,
-1
+1,
-1
1@@ -67,7 +67,7 @@ get_toplevel_decoration(struct wl_client *client, struct wl_resource *resource,
2 if (!decoration->resource)
3 goto error1;
4 decoration->toplevel_destroy_listener.notify = &handle_toplevel_destroy;
5- wl_resource_add_destroy_listener(decoration->resource, &decoration->toplevel_destroy_listener);
6+ wl_resource_add_destroy_listener(toplevel_resource, &decoration->toplevel_destroy_listener);
7 wl_resource_set_implementation(decoration->resource, &decoration_impl, NULL, NULL);
8 zxdg_toplevel_decoration_v1_send_configure(decoration->resource, ZXDG_TOPLEVEL_DECORATION_V1_MODE_SERVER_SIDE);
9 return;