conditionally compile elm win trap wayland functionality

This commit is contained in:
Mike Blumenkrantz 2015-03-12 14:28:18 -04:00
parent a7dae25236
commit 08328f0c19
1 changed files with 2 additions and 0 deletions

View File

@ -70,6 +70,7 @@ _e_elm_win_trap_show(void *data, Evas_Object *o)
E_Pixmap_Type type = E_PIXMAP_TYPE_X;
win = elm_win_window_id_get(o);
#ifdef HAVE_WAYLAND
if (!strncmp(ecore_evas_engine_name_get(ee), "wayland", 7))
{
type = E_PIXMAP_TYPE_WL;
@ -78,6 +79,7 @@ _e_elm_win_trap_show(void *data, Evas_Object *o)
win = e_comp_wl_id_get(win, getpid());
}
else
#endif
{
type = E_PIXMAP_TYPE_X;
ctx->pointer = e_pointer_window_new(win, EINA_TRUE);