From 40f2e19ef425a4f3228b2526a66f50562f383394 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Mon, 19 May 2003 20:18:46 +0000 Subject: [PATCH] set teh dock sizes before the app uses it for positioning --- openbox/dock.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/openbox/dock.c b/openbox/dock.c index eee578c5..8e4d0efc 100644 --- a/openbox/dock.c +++ b/openbox/dock.c @@ -155,16 +155,16 @@ void dock_configure() for (it = dock->dock_apps; it; it = it->next) { struct DockApp *app = it->data; if (config_dock_horz) { - app->x = spot; - app->y = (dock->h - app->h) / 2; dock->w += app->w; dock->h = MAX(dock->h, app->h); + app->x = spot; + app->y = (dock->h - app->h) / 2; spot += app->w; } else { - app->x = (dock->w - app->w) / 2; - app->y = spot; dock->w = MAX(dock->w, app->w); dock->h += app->h; + app->x = (dock->w - app->w) / 2; + app->y = spot; spot += app->h; } -- 2.45.2