compositor: Use helper for getting surface role name

Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
This commit is contained in:
Marius Vlad 2025-12-04 14:56:51 +02:00
parent 0926bd1025
commit b229b4c513

View file

@ -972,7 +972,7 @@ weston_surface_debug_string_regenerate(FILE *fp, void *data)
}
fprintf(fp, "role %s, PID %d, surface ID %u, %s",
surface->role_name, pid, surface_id, desc);
weston_surface_get_role(surface), pid, surface_id, desc);
if (!weston_surface_is_mapped(surface))
fprintf(fp, "\t[surface is not mapped!]\n");