wayland/subsurface: Make sure siblings are actually sub-surfaces
Without this check, is_sibling could spuriously return TRUE when neither
surface passed in was actually a sub-surface.
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3737>
(cherry picked from commit ba93fcd30f
)
This commit is contained in:
parent
3c3e649a32
commit
f7b13fd74f
1 changed files with 1 additions and 0 deletions
|
@ -104,6 +104,7 @@ is_sibling (MetaWaylandSurface *surface,
|
|||
MetaWaylandSurface *sibling)
|
||||
{
|
||||
return surface != sibling &&
|
||||
surface->committed_state.parent &&
|
||||
surface->committed_state.parent == sibling->committed_state.parent;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue