compositor: Only create paint nodes for mapped surfaces/views

If a surface or a view is not mapped, then we should not be trying to
paint it. Check if this is the case and ensure that we only insert
paint nodes for mapped surfaces & views.

Signed-off-by: Daniel Stone <daniels@collabora.com>
Fixes: #621
This commit is contained in:
Daniel Stone
2022-06-01 16:56:49 +01:00
committed by Marius Vlad
parent f1fe6ec776
commit f962b48958
2 changed files with 24 additions and 0 deletions
+4
View File
@@ -1311,6 +1311,10 @@ struct weston_compositor {
struct weston_log_scope *libseat_debug;
struct content_protection *content_protection;
/* One-time warning about a view appearing in the layer list when it
* or its surface are not mapped. */
bool warned_about_unmapped_surface_or_view;
};
struct weston_buffer {