swc

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

commit e85a732295062164a890f85fabd3839510508131
parent 8a7b81afaaa1f7d7bc84f74302a9807c7924a524
Author: Michael Forney <mforney@mforney.org>
Date:   Sun, 12 Jan 2020 22:55:33 -0800

xdg_shell: Initialize role to NULL

Diffstat:
Mlibswc/xdg_shell.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/libswc/xdg_shell.c b/libswc/xdg_shell.c @@ -443,6 +443,7 @@ xdg_surface_new(struct wl_client *client, uint32_t version, uint32_t id, struct goto error1; xdg_surface->surface = surface; xdg_surface->surface_destroy_listener.notify = &handle_surface_destroy; + xdg_surface->role = NULL; xdg_surface->role_destroy_listener.notify = &handle_role_destroy; wl_resource_add_destroy_listener(surface->resource, &xdg_surface->surface_destroy_listener); wl_resource_set_implementation(xdg_surface->resource, &xdg_surface_impl, xdg_surface, destroy_xdg_surface);