commit e85a732

Michael Forney  ·  2020-01-13 06:55:33 +0000 UTC
parent 8a7b81a
xdg_shell: Initialize role to NULL
1 files changed,  +1, -0
+1, -0
1@@ -443,6 +443,7 @@ xdg_surface_new(struct wl_client *client, uint32_t version, uint32_t id, struct
2 		goto error1;
3 	xdg_surface->surface = surface;
4 	xdg_surface->surface_destroy_listener.notify = &handle_surface_destroy;
5+	xdg_surface->role = NULL;
6 	xdg_surface->role_destroy_listener.notify = &handle_role_destroy;
7 	wl_resource_add_destroy_listener(surface->resource, &xdg_surface->surface_destroy_listener);
8 	wl_resource_set_implementation(xdg_surface->resource, &xdg_surface_impl, xdg_surface, destroy_xdg_surface);