]> Dogcows Code - chaz/openbox/commitdiff
set teh dock sizes before the app uses it for positioning
authorDana Jansens <danakj@orodu.net>
Mon, 19 May 2003 20:18:46 +0000 (20:18 +0000)
committerDana Jansens <danakj@orodu.net>
Mon, 19 May 2003 20:18:46 +0000 (20:18 +0000)
openbox/dock.c

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