forked from enlightenment/enlightenment
If we want to center a e_win, and it has a border, move it.
SVN revision: 16427
This commit is contained in:
parent
9bcb2c5c1a
commit
ef9b5bd806
|
@ -328,6 +328,13 @@ e_win_centered_set(E_Win *win, int centered)
|
||||||
win->state.centered = 1;
|
win->state.centered = 1;
|
||||||
_e_win_state_update(win);
|
_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 */
|
/* local subsystem functions */
|
||||||
|
|
Loading…
Reference in New Issue