mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-12-23 02:19:49 +01:00
subcompositor: don't map unadded subsurfaces
This commit is contained in:
parent
e841366068
commit
43fd3a007e
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue