jackdanielz pushed a commit to branch master.
commit e390513b2414320bb3ce50248472ace3700c12e2
Author: Daniel Zaoui <[email protected]>
Date: Fri Jun 28 11:14:46 2013 +0300
DnD: rotate the dragwin of the user icon according to the rotation of
the main win.
---
src/lib/elm_cnp.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/lib/elm_cnp.c b/src/lib/elm_cnp.c
index 035d8e7..604afb9 100644
--- a/src/lib/elm_cnp.c
+++ b/src/lib/elm_cnp.c
@@ -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;
--
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev