forked from enlightenment/enlightenment
add special case for frame adjustment during first recalc of new clients
in the case where a new client already has coordinates from creation event, the frame was never adjusted which resulted in the window being positioned incorrectly ref T1106
This commit is contained in:
parent
c2b3b159f3
commit
95e133282e
|
@ -3175,6 +3175,11 @@ reshadow:
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
_e_comp_smart_cb_frame_recalc(cw, cw->smart_obj, NULL);
|
_e_comp_smart_cb_frame_recalc(cw, cw->smart_obj, NULL);
|
||||||
|
if ((cw->x == -1) && (cw->y == -1) && cw->ec->new_client && (!cw->ec->placed))
|
||||||
|
{
|
||||||
|
cw->ec->x = MAX(cw->ec->zone->x, cw->ec->client.x - cw->client_inset.l);
|
||||||
|
cw->ec->y = MAX(cw->ec->zone->y, cw->ec->client.y - cw->client_inset.t);
|
||||||
|
}
|
||||||
/* this guarantees that we won't get blocked by the NOP check in the interceptor */
|
/* this guarantees that we won't get blocked by the NOP check in the interceptor */
|
||||||
cw->y = cw->x = -99999;
|
cw->y = cw->x = -99999;
|
||||||
if (pbg)
|
if (pbg)
|
||||||
|
|
Loading…
Reference in New Issue