Removed build deps on ecore-x and libslp-utilx
[profile/ivi/taskmanager.git] / src / _logic.c
index 2c02838..041074a 100755 (executable)
@@ -19,7 +19,9 @@
 
 #include <appcore-common.h>
 #include <aul.h>
+#if HAVE_X
 #include <Ecore_X.h>
+#endif
 #include <vconf.h>
 
 #include "taskmanager.h"
@@ -186,12 +188,11 @@ int _app_create(struct appdata *ad)
 
 static void _get_win_geometry(struct appdata *ad)
 {
-       Ecore_X_Window focus_win;
-       Ecore_X_Window root_win;
-
-       focus_win = ecore_x_window_focus_get();
-       root_win = ecore_x_window_root_get(focus_win);
-       ecore_x_window_size_get(root_win, &ad->root_w, &ad->root_h);
+       Evas_Object *eo;
+       Ecore_Evas *ee;
+       ee = ecore_evas_ecore_evas_get(evas_object_evas_get(ad->win));
+       ecore_evas_screen_geometry_get(ee, 0, 0, &ad->root_w, &ad->root_h);
 }
 
 static void _vconf_noti_cb(keynode_t *node, void *data)
@@ -224,7 +225,9 @@ static Eina_Bool __climsg_cb(void *data, int type, void *event)
 
        pid_a = ev->data.l[1];
        pid_d = ev->data.l[3];
+#if HAVE_X
        a_deact = ecore_x_atom_get("_X_ILLUME_DEACTIVATE_WINDOW");
+#endif
 
        /* when pid_a == pid_d, this is useless data */
        if (pid_a == pid_d) {