discomfitor pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=aa404d3916e0b9cb1a9ea3b50b4c474a1bb5781a

commit aa404d3916e0b9cb1a9ea3b50b4c474a1bb5781a
Author: Mike Blumenkrantz <[email protected]>
Date:   Thu Jan 25 14:19:19 2018 -0500

    use wl client geometry when calculating input rect geometry
    
    the x/y values of a comp object are unreliable during init, so ensure
    valid coords are used to avoid accidentally moving input rects offscreen
---
 src/bin/e_comp_object.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/bin/e_comp_object.c b/src/bin/e_comp_object.c
index c1a7941c7..35e35a4da 100644
--- a/src/bin/e_comp_object.c
+++ b/src/bin/e_comp_object.c
@@ -2550,8 +2550,8 @@ _e_comp_object_input_rect_update(E_Comp_Object *cw)
 
         E_RECTS_CLIP_TO_RECT(x, y, w, h, 0, 0, cw->ec->client.w, 
cw->ec->client.h);
         evas_object_geometry_set(o,
-            cw->x + x + (!!cw->frame_object * cw->client_inset.l),
-            cw->y + y + (!!cw->frame_object * cw->client_inset.t),
+            cw->ec->x + x + (!!cw->frame_object * cw->client_inset.l),
+            cw->ec->y + y + (!!cw->frame_object * cw->client_inset.t),
             w, h);
      }
    eina_iterator_free(it);

-- 


Reply via email to