diff --git a/types/wlr_surface.c b/types/wlr_surface.c index 2f68b134..e733c544 100644 --- a/types/wlr_surface.c +++ b/types/wlr_surface.c @@ -386,6 +386,7 @@ struct wlr_surface *wlr_surface_create(struct wl_resource *res, wl_resource_post_no_memory(res); return NULL; } + wlr_log(L_DEBUG, "New wlr_surface %p (res %p)", surface, res); surface->renderer = renderer; surface->texture = wlr_render_texture_create(renderer); surface->resource = res; diff --git a/types/wlr_wl_shell.c b/types/wlr_wl_shell.c index 378758e8..84b40fc3 100644 --- a/types/wlr_wl_shell.c +++ b/types/wlr_wl_shell.c @@ -88,6 +88,7 @@ static void wl_shell_get_shell_surface(struct wl_client *client, state->surface = surface; struct wl_resource *shell_surface_resource = wl_resource_create(client, &wl_shell_surface_interface, wl_resource_get_version(resource), id); + wlr_log(L_DEBUG, "New wl_shell %p (res %p)", state, shell_surface_resource); wl_resource_set_implementation(shell_surface_resource, &shell_surface_interface, state, destroy_shell_surface); wl_list_insert(&wlr_wl_shell->surfaces, &state->link); diff --git a/types/wlr_xdg_shell_v6.c b/types/wlr_xdg_shell_v6.c index 484571b3..b5df9bd8 100644 --- a/types/wlr_xdg_shell_v6.c +++ b/types/wlr_xdg_shell_v6.c @@ -149,6 +149,7 @@ static void xdg_shell_get_xdg_surface(struct wl_client *client, surface->surface = _surface; surface->resource = wl_resource_create(client, &zxdg_surface_v6_interface, wl_resource_get_version(_xdg_shell), id); + wlr_log(L_DEBUG, "new xdg_surface %p (res %p)", surface, surface->resource); wl_resource_set_implementation(surface->resource, &zxdg_surface_v6_implementation, surface, xdg_surface_destroy); wl_list_insert(&xdg_shell->surfaces, &surface->link);