diff options
author | Mike Blumenkrantz <zmike@osg.samsung.com> | 2018-01-25 14:19:19 -0500 |
---|---|---|
committer | Mike Blumenkrantz <zmike@osg.samsung.com> | 2018-01-25 14:19:19 -0500 |
commit | aa404d3916e0b9cb1a9ea3b50b4c474a1bb5781a (patch) | |
tree | 40d097beec8aadc0ec8db60daddb6408bc978640 | |
parent | 79d757e21e094ba08843fcd2be97423584ccc00f (diff) | |
download | enlightenment-aa404d3916e0b9cb1a9ea3b50b4c474a1bb5781a.tar.gz |
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
-rw-r--r-- | src/bin/e_comp_object.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/e_comp_object.c b/src/bin/e_comp_object.c index c1a7941c73..35e35a4da6 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); |