diff options
author | Dominique Martinet <asmadeus@codewreck.org> | 2017-08-20 13:41:15 +0200 |
---|---|---|
committer | Dominique Martinet <asmadeus@codewreck.org> | 2017-08-23 22:03:49 +0200 |
commit | ea906ea3e217c578aca76825c1d24a542b487380 (patch) | |
tree | 0cddc3cb4893e1a6c30b2216aa0c642451eaf562 | |
parent | eb5b9cc6daa39f6e1bcafae074f832f07b5d0a19 (diff) |
wlr surface/shell types: add message on creation
Not sure if we really want to keep that, would be helpful to get more
logging levels at some point
-rw-r--r-- | types/wlr_surface.c | 1 | ||||
-rw-r--r-- | types/wlr_wl_shell.c | 1 | ||||
-rw-r--r-- | types/wlr_xdg_shell_v6.c | 1 |
3 files changed, 3 insertions, 0 deletions
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); |