discomfitor pushed a commit to branch master. http://git.enlightenment.org/core/enlightenment.git/commit/?id=5c14b4a17b5f16685fa4c0bcdd68bfebbb28e230
commit 5c14b4a17b5f16685fa4c0bcdd68bfebbb28e230 Author: Mike Blumenkrantz <[email protected]> Date: Mon Aug 10 15:15:54 2015 -0400 add comp util function for determining whether xwayland is active --- src/bin/e_comp.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/bin/e_comp.h b/src/bin/e_comp.h index 5aceb01..74f3932 100644 --- a/src/bin/e_comp.h +++ b/src/bin/e_comp.h @@ -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 --
