Surfaces and views not marked as is_mapped
Within libweston
compositor.c
, I can not determine where surfaces and views are marked as is_mapped = true
, except for the view_list_add_subsurface_view()
and subsurface_committed()
cases.
Symptom is I cannot clear a surface by attaching a NULL buffer using wl_surface_attach()
(and of course damaging the area and committing), because the surface was never marked as is_mapped
in the first place. Therefore, weston_surface_unmap()
is not called from weston_surface_attach()
.
The surface was created using wl_compositor_create_surface()
.
I am not sure in what cases is_mapped
should be set for the surface/views and where it should be set from for the case described above. I can see that desktop shell manages this flag itself, but I am not using desktop shell.
Thank you for your time.