]> Dogcows Code - chaz/openbox/commitdiff
center dock apps
authorDana Jansens <danakj@orodu.net>
Mon, 19 May 2003 20:17:17 +0000 (20:17 +0000)
committerDana Jansens <danakj@orodu.net>
Mon, 19 May 2003 20:17:17 +0000 (20:17 +0000)
openbox/dock.c

index e17c8913b8e2f910bd6a75b553b92775bdf3ab63..eee578c5ca662fd79f0ca6feefdcbe63bd9fe80d 100644 (file)
@@ -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;
This page took 0.023475 seconds and 4 git commands to generate.