mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-05 05:05:57 +01:00
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
This commit is contained in:
parent
eb5b9cc6da
commit
ea906ea3e2
3 changed files with 3 additions and 0 deletions
|
@ -386,6 +386,7 @@ struct wlr_surface *wlr_surface_create(struct wl_resource *res,
|
||||||
wl_resource_post_no_memory(res);
|
wl_resource_post_no_memory(res);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
wlr_log(L_DEBUG, "New wlr_surface %p (res %p)", surface, res);
|
||||||
surface->renderer = renderer;
|
surface->renderer = renderer;
|
||||||
surface->texture = wlr_render_texture_create(renderer);
|
surface->texture = wlr_render_texture_create(renderer);
|
||||||
surface->resource = res;
|
surface->resource = res;
|
||||||
|
|
|
@ -88,6 +88,7 @@ static void wl_shell_get_shell_surface(struct wl_client *client,
|
||||||
state->surface = surface;
|
state->surface = surface;
|
||||||
struct wl_resource *shell_surface_resource = wl_resource_create(client,
|
struct wl_resource *shell_surface_resource = wl_resource_create(client,
|
||||||
&wl_shell_surface_interface, wl_resource_get_version(resource), id);
|
&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,
|
wl_resource_set_implementation(shell_surface_resource,
|
||||||
&shell_surface_interface, state, destroy_shell_surface);
|
&shell_surface_interface, state, destroy_shell_surface);
|
||||||
wl_list_insert(&wlr_wl_shell->surfaces, &state->link);
|
wl_list_insert(&wlr_wl_shell->surfaces, &state->link);
|
||||||
|
|
|
@ -149,6 +149,7 @@ static void xdg_shell_get_xdg_surface(struct wl_client *client,
|
||||||
surface->surface = _surface;
|
surface->surface = _surface;
|
||||||
surface->resource = wl_resource_create(client,
|
surface->resource = wl_resource_create(client,
|
||||||
&zxdg_surface_v6_interface, wl_resource_get_version(_xdg_shell), id);
|
&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,
|
wl_resource_set_implementation(surface->resource,
|
||||||
&zxdg_surface_v6_implementation, surface, xdg_surface_destroy);
|
&zxdg_surface_v6_implementation, surface, xdg_surface_destroy);
|
||||||
wl_list_insert(&xdg_shell->surfaces, &surface->link);
|
wl_list_insert(&xdg_shell->surfaces, &surface->link);
|
||||||
|
|
Loading…
Reference in a new issue