From: Dana Jansens Date: Mon, 19 May 2003 20:17:17 +0000 (+0000) Subject: center dock apps X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=135d6d7bdc5add79aabcdfca2cbfb290d5591341;p=chaz%2Fopenbox center dock apps --- diff --git a/openbox/dock.c b/openbox/dock.c index e17c8913..eee578c5 100644 --- a/openbox/dock.c +++ b/openbox/dock.c @@ -156,12 +156,12 @@ void dock_configure() struct DockApp *app = it->data; if (config_dock_horz) { app->x = spot; - app->y = 0; + app->y = (dock->h - app->h) / 2; dock->w += app->w; dock->h = MAX(dock->h, app->h); spot += app->w; } else { - app->x = 0; + app->x = (dock->w - app->w) / 2; app->y = spot; dock->w = MAX(dock->w, app->w); dock->h += app->h;