mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-03-23 23:40:37 +01:00
So far we have had two ways of identifying a weston_surface: by its memory address "%p", and by its get_label function. The memory address is not human-friendly and can get recycled. get_label() is not unique, and in some cases it is client-controllable. Oh, we also have the protocol object ID, but that does not exist for internally created weston_surfaces. We also have weston_surface::s_id, damage_track_id and flow_id. These are used by some Perfetto instrumentation. s_id comes from a compositor-wide counter rather than per-client counter, the others are probably not what I'm looking for. None of these are really nice for trace and debug prints for identifying surfaces for human reading. Therefore, let's add one more ID, and with it, a nice name for each surface. Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com> |
||
|---|---|---|
| .. | ||
| meson.build | ||
| shell-utils.c | ||