wayland/surface: Simplify is_child & is_sibling
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2525>
This commit is contained in:
parent
f685567afe
commit
ddb7f84291
@ -95,20 +95,14 @@ static gboolean
|
|||||||
is_child (MetaWaylandSurface *surface,
|
is_child (MetaWaylandSurface *surface,
|
||||||
MetaWaylandSurface *sibling)
|
MetaWaylandSurface *sibling)
|
||||||
{
|
{
|
||||||
if (surface->sub.parent == sibling)
|
return surface->sub.parent == sibling;
|
||||||
return TRUE;
|
|
||||||
else
|
|
||||||
return FALSE;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
is_sibling (MetaWaylandSurface *surface,
|
is_sibling (MetaWaylandSurface *surface,
|
||||||
MetaWaylandSurface *sibling)
|
MetaWaylandSurface *sibling)
|
||||||
{
|
{
|
||||||
if (surface->sub.parent == sibling->sub.parent)
|
return surface->sub.parent == sibling->sub.parent;
|
||||||
return TRUE;
|
|
||||||
else
|
|
||||||
return FALSE;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
|
Loading…
x
Reference in New Issue
Block a user