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
This commit is contained in:
Mike Blumenkrantz 2018-01-25 14:19:19 -05:00
parent 79d757e21e
commit aa404d3916
1 changed files with 2 additions and 2 deletions

View File

@ -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);