Reapply "place child clients above fullscreen clients"

This reverts commit 043ab3ac13.
This commit is contained in:
Leonardo Hernández Hernández
2024-07-14 21:01:36 -06:00
parent 0761fd0691
commit 9a962ce136
2 changed files with 20 additions and 5 deletions

View File

@@ -183,6 +183,18 @@ client_get_parent(Client *c)
return p;
}
static inline int
client_has_children(Client *c)
{
#ifdef XWAYLAND
if (client_is_x11(c))
return !wl_list_empty(&c->surface.xwayland->children);
#endif
/* surface.xdg->link is never empty because it always contains at least the
* surface itself. */
return wl_list_length(&c->surface.xdg->link) > 1;
}
static inline const char *
client_get_title(Client *c)
{