If we want to center a e_win, and it has a border, move it.

SVN revision: 16427
This commit is contained in:
sebastid 2005-08-30 10:42:47 +00:00 committed by sebastid
parent 9bcb2c5c1a
commit ef9b5bd806
1 changed files with 7 additions and 0 deletions

View File

@ -328,6 +328,13 @@ e_win_centered_set(E_Win *win, int centered)
win->state.centered = 1;
_e_win_state_update(win);
}
if (win->border)
{
/* The window is visible, move it to the right spot */
e_border_move(win->border,
win->border->zone->x + (win->border->zone->w - win->border->w) / 2,
win->border->zone->y + (win->border->zone->h - win->border->h) / 2);
}
}
/* local subsystem functions */