DnD: rotate the dragwin of the user icon according to the rotation of
authorDaniel Zaoui <daniel.zaoui@samsung.com>
Fri, 28 Jun 2013 08:14:46 +0000 (11:14 +0300)
committerDaniel Zaoui <daniel.zaoui@samsung.com>
Fri, 28 Jun 2013 08:15:59 +0000 (11:15 +0300)
the main win.

legacy/elementary/src/lib/elm_cnp.c

index 035d8e7..604afb9 100644 (file)
@@ -1983,6 +1983,11 @@ _x11_elm_drag_start(Evas_Object *obj, Elm_Sel_Format format, const char *data,
    elm_win_alpha_set(dragwin, EINA_TRUE);
    elm_win_override_set(dragwin, EINA_TRUE);
 
+   /* dragwin has to be rotated as the main window is */
+   Evas_Object *win = elm_widget_top_get(obj);
+   if (win && eo_isa(win, ELM_OBJ_WIN_CLASS))
+      elm_win_rotation_set(dragwin, elm_win_rotation_get(win));
+
    if (createicon)
      {
         Evas_Coord xoff = 0, yoff = 0;