if (bd->new_client)
{
E_Event_Border_Add *ev;
+ E_Border_Pending_Move_Resize *pnd;
ev = E_NEW(E_Event_Border_Add, 1);
ev->border = bd;
if ((!bd->lock_border) || (!bd->client.border.name))
bd->client.border.changed = 1;
+
+ EINA_LIST_FREE(bd->pending_move_resize, pnd)
+ {
+ if ((!bd->lock_client_location) && (pnd->move))
+ {
+ bd->x = pnd->x;
+ bd->y = pnd->y;
+ bd->changes.pos = 1;
+ bd->placed = 1;
+ if (pnd->without_border)
+ {
+ bd->x -= bd->client_inset.l;
+ bd->y -= bd->client_inset.t;
+ }
+ }
+ if ((!bd->lock_client_size) && (pnd->resize))
+ {
+ bd->w = pnd->w + (bd->client_inset.l + bd->client_inset.r);
+ bd->h = pnd->h + (bd->client_inset.t + bd->client_inset.b);
+ bd->client.w = pnd->w;
+ bd->client.h = pnd->h;
+ bd->changes.size = 1;
+ }
+ printf("free pendig %dx%d\n", bd->w, bd->h);
+
+ free(pnd);
+ }
}
/* PRE_POST_FETCH calls e_remember apply for new client */
_e_border_eval(E_Border *bd)
{
E_Event_Border_Property *event;
- E_Border_Pending_Move_Resize *pnd;
int rem_change = 0;
int send_event = 1;
bd->y = new_y;
bd->changes.pos = 1;
}
- EINA_LIST_FREE(bd->pending_move_resize, pnd)
- {
- if ((!bd->lock_client_location) && (pnd->move))
- {
- bd->x = pnd->x;
- bd->y = pnd->y;
- bd->changes.pos = 1;
- bd->placed = 1;
- if (pnd->without_border)
- {
- bd->x -= bd->client_inset.l;
- bd->y -= bd->client_inset.t;
- }
- }
- if ((!bd->lock_client_size) && (pnd->resize))
- {
- bd->w = pnd->w + (bd->client_inset.l + bd->client_inset.r);
- bd->h = pnd->h + (bd->client_inset.t + bd->client_inset.b);
- bd->client.w = pnd->w;
- bd->client.h = pnd->h;
- bd->changes.size = 1;
- }
- free(pnd);
- }
/* Recreate state */
e_hints_window_init(bd);
bd->x,
bd->y + bd->h - 1);
if ((zone) && (zone != bd->zone))
- {
- e_border_zone_set(bd, zone);
- /* e_zone_useful_geometry_get(zone, &zx, &zy, &zw, &zh); */
- }
+ e_border_zone_set(bd, zone);
}
}