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:
committed by
Marius Vlad
parent
f1fe6ec776
commit
f962b48958
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user