forked from enlightenment/enlightenment
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:
parent
79d757e21e
commit
aa404d3916
|
@ -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);
|
E_RECTS_CLIP_TO_RECT(x, y, w, h, 0, 0, cw->ec->client.w, cw->ec->client.h);
|
||||||
evas_object_geometry_set(o,
|
evas_object_geometry_set(o,
|
||||||
cw->x + x + (!!cw->frame_object * cw->client_inset.l),
|
cw->ec->x + x + (!!cw->frame_object * cw->client_inset.l),
|
||||||
cw->y + y + (!!cw->frame_object * cw->client_inset.t),
|
cw->ec->y + y + (!!cw->frame_object * cw->client_inset.t),
|
||||||
w, h);
|
w, h);
|
||||||
}
|
}
|
||||||
eina_iterator_free(it);
|
eina_iterator_free(it);
|
||||||
|
|
Loading…
Reference in New Issue