add util function for determining presence of x11 compositor

This commit is contained in:
Mike Blumenkrantz 2015-07-01 16:05:25 -04:00
parent dd1ff970ac
commit 1dbe0b4eb8
1 changed files with 6 additions and 0 deletions

View File

@ -225,5 +225,11 @@ e_comp_util_client_is_fullscreen(const E_Client *ec)
);
}
static inline Eina_Bool
e_comp_util_has_x(void)
{
return !!e_comp->root;
}
#endif
#endif