e17: set border fx offset directly. should give smoother desk flip animation

SVN revision: 58090
This commit is contained in:
Hannes Janetzek 2011-03-25 20:26:06 +00:00
parent 17fc4de8bd
commit 401fef69de
1 changed files with 5 additions and 3 deletions

View File

@ -1243,10 +1243,12 @@ e_border_fx_offset(E_Border *bd,
if ((x == bd->fx.x) && (y == bd->fx.y)) return;
bd->fx.x = x;
bd->fx.y = y;
bd->changed = 1;
bd->changes.pos = 1;
_e_border_client_move_resize_send(bd);
ecore_x_window_move(bd->win, bd->x + bd->fx.start.x, bd->y + bd->fx.start.y);
bd->changes.pos = 0;
/* client doesnt need to know fx offset, or does it? */
/* _e_border_client_move_resize_send(bd); */
if (bd->moving) _e_border_move_update(bd);
}