]> Dogcows Code - chaz/openbox/commitdiff
use the minsize to keep the stuff ni the dock off of the bevel edges etc
authorDana Jansens <danakj@orodu.net>
Thu, 26 Jun 2003 05:46:06 +0000 (05:46 +0000)
committerDana Jansens <danakj@orodu.net>
Thu, 26 Jun 2003 05:46:06 +0000 (05:46 +0000)
openbox/dock.c

index 3dda174dbee21e2aeb0feb9e8af97d2dfc433c8e..d46f76745cb33076a8c022bd92af17432fd451fb 100644 (file)
@@ -150,8 +150,11 @@ void dock_configure()
     GList *it;
     int spot;
     int gravity;
+    int minw, minh;
 
-    dock->w = dock->h = spot = 0;
+    RrMinsize(dock->a_frame, &minw, &minh);
+
+    dock->w = dock->h = 0;
 
     /* get the size */
     for (it = dock->dock_apps; it; it = it->next) {
@@ -165,6 +168,8 @@ void dock_configure()
         }
     }
 
+    spot = (config_dock_horz ? minw : minh) / 2;
+
     /* position the apps */
     for (it = dock->dock_apps; it; it = it->next) {
         struct DockApp *app = it->data;
@@ -345,6 +350,9 @@ void dock_configure()
         break;
     }
 
+    dock->w += minw;
+    dock->h += minh;
+
     /* not used for actually sizing shit */
     dock->w -= ob_rr_theme->bwidth * 2;
     dock->h -= ob_rr_theme->bwidth * 2;
This page took 0.023055 seconds and 4 git commands to generate.