add e_client_util_top_parent_get()

This commit is contained in:
Mike Blumenkrantz 2016-11-16 12:38:53 -05:00
parent 689441781a
commit 5130935284
1 changed files with 9 additions and 0 deletions

View File

@ -164,3 +164,12 @@ e_client_util_name_get(const E_Client *ec)
return ec->icccm.title;
return NULL;
}
static inline E_Client *
e_client_util_top_parent_get(const E_Client *ec)
{
E_Client *parent = ec->parent;
while (parent->parent) parent = parent->parent;
return parent;
}