#define HAVE_X 0
#include <Elementary.h>
+#if HAVE_X
#include <Ecore_X.h>
+#endif
#include <ail.h>
#include <app.h>
#include <stdbool.h>
static menu_screen_error_e _create_canvas(char *name, char *title)
{
+#if HAVE_X
Ecore_X_Atom ATOM_WM_WINDOW_ROLE;
+#endif
menu_screen_info.win = elm_win_add(NULL, name, ELM_WIN_BASIC);
retv_if(NULL == menu_screen_info.win, MENU_SCREEN_ERROR_FAIL);
}
elm_win_borderless_set(menu_screen_info.win, EINA_TRUE);
-#if 0
+#if HAVE_X
/* X Specific */
ecore_x_icccm_name_class_set(elm_win_xwindow_get(menu_screen_info.win), "MENU_SCREEN", "MENU_SCREEN");
ATOM_WM_WINDOW_ROLE = ecore_x_atom_get("WM_WINDOW_ROLE");
{
Evas_Object *layout;
-#if 0
+#if HAVE_X
/* Move this call to be executed after window is created */
_set_scale();
#endif