diff options
author | Kirill Primak <vyivel@eclair.cafe> | 2023-07-19 01:43:03 +0300 |
---|---|---|
committer | Isaac Freund <mail@isaacfreund.com> | 2023-11-23 13:18:06 +0000 |
commit | 43fd3a007eb15d033f386de6f589b4560dde9e79 (patch) | |
tree | cad82fb44221d1253668f0ffd9c55ea9b14a9ab8 | |
parent | e8413660686bf94322799470ef5b109ea4580cc9 (diff) |
subcompositor: don't map unadded subsurfaces
-rw-r--r-- | types/wlr_subcompositor.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/types/wlr_subcompositor.c b/types/wlr_subcompositor.c index f78f7a45..c66d6f1d 100644 --- a/types/wlr_subcompositor.c +++ b/types/wlr_subcompositor.c @@ -195,7 +195,8 @@ static const struct wl_subsurface_interface subsurface_implementation = { const struct wlr_surface_role subsurface_role; void subsurface_consider_map(struct wlr_subsurface *subsurface) { - if (subsurface->parent->mapped && wlr_surface_has_buffer(subsurface->surface)) { + if (subsurface->added && subsurface->parent->mapped && + wlr_surface_has_buffer(subsurface->surface)) { wlr_surface_map(subsurface->surface); } } |