add comp util function for determining whether xwayland is active

This commit is contained in:
Mike Blumenkrantz 2015-08-10 15:15:54 -04:00
parent 1ca8c9eb36
commit 5c14b4a17b
1 changed files with 6 additions and 0 deletions

View File

@ -233,5 +233,11 @@ e_comp_util_has_x(void)
return !!e_comp->root;
}
static inline Eina_Bool
e_comp_util_has_xwayland(void)
{
return (e_comp->comp_type != E_PIXMAP_TYPE_X) && e_comp_util_has_x();
}
#endif
#endif