yakov pushed a commit to branch master.

http://git.enlightenment.org/tools/erigo.git/commit/?id=e372d17ce7c69351bc18631511ce7bd703bcfaf1

commit e372d17ce7c69351bc18631511ce7bd703bcfaf1
Author: Yakov Goldberg <yako...@samsung.com>
Date:   Wed Oct 21 20:35:38 2015 +0300

    Fix main widgets position change
---
 src/bin/gui/editor.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/src/bin/gui/editor.c b/src/bin/gui/editor.c
index 79d0950..a823deb 100644
--- a/src/bin/gui/editor.c
+++ b/src/bin/gui/editor.c
@@ -804,6 +804,9 @@ _marker_mouse_move(void *data, Eo *marker EINA_UNUSED, 
const Eo_Event_Descriptio
                                (vert_up) ? new_y : oy,
                                (hor_up) ? new_w : ow,
                                (vert_up) ? new_h : oh);
+
+        wdg_data_set(wdg, CURSOR_DROP_X, (void *) (intptr_t) (hor_up ? new_x : 
ox));
+        wdg_data_set(wdg, CURSOR_DROP_Y, (void *) (intptr_t) (vert_up ? new_y 
: oy));
      }
    else
      {
@@ -1136,7 +1139,6 @@ _frame_mouse_move(void *data EINA_UNUSED, Eo *fr, const 
Eo_Event_Description *de
 
    elm_grid_pack_get(fr, &ox, &oy, &ow, &oh);
 
-
    _mmd.delta_x = ev->cur.canvas.x - _mmd.down_x;
    _mmd.delta_y = ev->cur.canvas.y - _mmd.down_y;
 
@@ -1147,6 +1149,10 @@ _frame_mouse_move(void *data EINA_UNUSED, Eo *fr, const 
Eo_Event_Description *de
 
    /* FIXME: Move frame here, because we don't know if win must have position 
property*/
    elm_grid_pack_set(fr, ox, oy, ow, oh);
+
+   wdg_data_set(wdg, CURSOR_DROP_X, (void *) (intptr_t) ox);
+   wdg_data_set(wdg, CURSOR_DROP_Y, (void *) (intptr_t) oy);
+
    prop = wdg_prop_get(wdg, DB_DEF_EFL_GFX_BASE_CLASS, POSITION_SET);
    if (prop)
      {

-- 


Reply via email to