From cf0cf7ee2f2b7a7e8637bb60c985a195bc490749 Mon Sep 17 00:00:00 2001 From: Sebastian Dransfeld Date: Tue, 13 Feb 2007 02:34:09 +0000 Subject: [PATCH] Center dialogs without parent. SVN revision: 28337 --- src/bin/e_border.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/bin/e_border.c b/src/bin/e_border.c index 60cf0df35..4c389f4df 100644 --- a/src/bin/e_border.c +++ b/src/bin/e_border.c @@ -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;