diff options
author | Leonardo Hernández Hernández <leohdz172@proton.me> | 2024-07-14 21:01:36 -0600 |
---|---|---|
committer | Leonardo Hernández Hernández <leohdz172@proton.me> | 2024-07-14 21:10:44 -0600 |
commit | 9a962ce136536689b289ac126a0ad3525a13f682 (patch) | |
tree | 653b313faebdd342d13dab8fb30d141ea9aeea0b /client.h | |
parent | 0761fd0691ee5816a0319ebda3ba70477a1df967 (diff) |
Reapply "place child clients above fullscreen clients"
This reverts commit 043ab3ac1335d7a1cd84fe0f9cea8056977211a4.
Diffstat (limited to 'client.h')
-rw-r--r-- | client.h | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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) { |