clutter/stage-view: Add name property

Will be used for logging to identify what view a log entry concerns. For
the native and nested backend this is the name of the output the CRTC is
assigned to drive; for X11 it's just "X11 screen", and for the legacy
"X11 screen" emulation mode of the nested backend it's called "legacy
nested".

https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1237
This commit is contained in:
Jonas Ådahl
2020-04-30 10:42:30 +02:00
committed by Georges Basile Stavracas Neto
parent 9bf6faf639
commit 6db94a0b77
4 changed files with 22 additions and 0 deletions

View File

@ -3230,6 +3230,7 @@ meta_renderer_native_create_view (MetaRenderer *renderer,
META_ROUNDING_STRATEGY_ROUND,
&view_layout);
view = g_object_new (META_TYPE_RENDERER_VIEW,
"name", meta_output_get_name (output),
"layout", &view_layout,
"scale", scale,
"framebuffer", onscreen,