Center dialogs without parent.

SVN revision: 28337
This commit is contained in:
Sebastian Dransfeld 2007-02-13 02:34:09 +00:00
parent d7959c6895
commit cf0cf7ee2f
1 changed files with 11 additions and 0 deletions

View File

@ -5786,6 +5786,17 @@ _e_border_eval(E_Border *bd)
bd->changes.pos = 1;
bd->placed = 1;
}
if (bd->leader)
{
/* TODO: Place in center of group */
}
if (bd->client.netwm.type == ECORE_X_WINDOW_TYPE_DIALOG)
{
bd->x = bd->zone->x + ((bd->zone->w - bd->w) / 2);
bd->y = bd->zone->y + ((bd->zone->h - bd->h) / 2);
bd->changes.pos = 1;
bd->placed = 1;
}
if (!bd->placed)
{
Evas_List *skiplist = NULL;