e - fix build when wayland not enabled

This commit is contained in:
Carsten Haitzler 2015-02-07 12:30:19 +09:00
parent 903b9beaed
commit 413ca8046e
1 changed files with 6 additions and 1 deletions

View File

@ -70,6 +70,7 @@ _e_elm_win_trap_show(void *data, Evas_Object *o)
E_Pixmap_Type type; E_Pixmap_Type type;
win = elm_win_window_id_get(o); win = elm_win_window_id_get(o);
#ifdef HAVE_WAYLAND_CLIENTS
if (!strncmp(ecore_evas_engine_name_get(ee), "wayland", 7)) if (!strncmp(ecore_evas_engine_name_get(ee), "wayland", 7))
{ {
type = E_PIXMAP_TYPE_WL; type = E_PIXMAP_TYPE_WL;
@ -77,12 +78,16 @@ _e_elm_win_trap_show(void *data, Evas_Object *o)
elm_win_borderless_set(o, 1); elm_win_borderless_set(o, 1);
win = e_comp_wl_id_get(win, getpid()); win = e_comp_wl_id_get(win, getpid());
} }
#endif
#ifndef HAVE_WAYLAND_ONLY
# ifdef HAVE_WAYLAND_CLIENT
else else
# endif
{ {
type = E_PIXMAP_TYPE_X; type = E_PIXMAP_TYPE_X;
ctx->pointer = e_pointer_window_new(win, EINA_TRUE); ctx->pointer = e_pointer_window_new(win, EINA_TRUE);
} }
#endif
ec = e_pixmap_find_client(type, win); ec = e_pixmap_find_client(type, win);
if (ec) if (ec)
ctx->client = ec; ctx->client = ec;