#include "app-selector-view.h"
#include "app-selector-util.h"
+#define WIN_PROP_NAME "APP_SELECTOR"
+
#ifndef EXPORT_API
#define EXPORT_API __attribute__ ((visibility("default")))
#endif
evas_object_size_hint_weight_set(layout, EVAS_HINT_EXPAND,
EVAS_HINT_EXPAND);
- edje_object_signal_emit(_EDJ(layout), "elm,state,show,indicator",
- "elm");
edje_object_signal_emit(_EDJ(layout), "elm,state,show,content", "elm");
evas_object_show(layout);
return num;
}
-
+#ifdef ROTATE_USING_X_CLIENT
static int __x_rotation_get(Display *dpy, Window win)
{
Window active_win;
XA_WINDOW,
(unsigned int *)&active_win, 1);
- /*printf("[SYSPOPUP] Active win : %x, Window %x\n", active_win, win);*/
-
- /*active_win = get_active_win(dpy, root_win, atom_active_win);*/
if (ret < 0)
return ret;
atom_win_rotate_angle, XA_CARDINAL,
(unsigned int *)&rotation, 1);
- /*printf("[SYSPOPUP] Rotation %d\n", rotation);*/
-
if (ret != -1)
return rotation;
return 0;
}
+#endif
static Eina_Bool s_key_registered;
if (!ly)
return -1;
- edje_object_signal_emit(_EDJ(ly), "elm,bg,show,transparent", "elm");
+ ad->layout = ly;
- elm_win_resize_object_add(win, ly);
+ edje_object_signal_emit(_EDJ(ly), "elm,bg,show,transparent", "elm");
ad->dpy = ecore_x_display_get();
ad->xwin = elm_win_xwindow_get(win);
-#ifdef ROTATE_ACTIVE_WIN
+#ifdef ROTATE_USING_X_CLIENT
ad->rotate = ecore_event_handler_add(ECORE_X_EVENT_CLIENT_MESSAGE,
__rotate, (void *)ad);
-
__as_rotate(ad->dpy, ad->xwin, win, ad);
#else
- if (elm_win_wm_rotation_supported_get(win))
- {
+ ecore_x_icccm_name_class_set(ad->xwin, WIN_PROP_NAME, WIN_PROP_NAME);
+ if (elm_win_wm_rotation_supported_get(ad->win)) {
int rots[4] = { 0, 90, 180, 270 };
- elm_win_wm_rotation_available_rotations_set(win, (const int*)&rots, 4);
+ elm_win_wm_rotation_available_rotations_set(ad->win, &rots, 4);
+ } else {
+ _E("win rotation no supported");
}
#endif
+
evas_object_show(win);
/* init internationalization */