add client util function for detecting borderless state

This commit is contained in:
Mike Blumenkrantz 2014-01-20 15:11:53 -05:00
parent 02f6dcdf2a
commit ed51fa2b96
1 changed files with 6 additions and 0 deletions

View File

@ -96,3 +96,9 @@ e_client_resizing_get(const E_Client *ec)
{
return (ec->resize_mode != E_POINTER_RESIZE_NONE);
}
static inline Eina_Bool
e_client_util_borderless(const E_Client *ec)
{
return (ec->borderless || ec->mwm.borderless || (!ec->border.name) || (!strcmp(ec->border.name, "borderless")));
}