summaryrefslogtreecommitdiff
path: root/openbox/dock.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-06-26 05:46:06 +0000
committerDana Jansens <danakj@orodu.net>2003-06-26 05:46:06 +0000
commite39762b05b87e9f3d125450a1a27618f52de1354 (patch)
tree24f270f3fb2337b1797cc707defcf2893839f583 /openbox/dock.c
parentbf2f0c58ca4dce233a7f99ac3cc688271c87a8ec (diff)
use the minsize to keep the stuff ni the dock off of the bevel edges etc
Diffstat (limited to 'openbox/dock.c')
-rw-r--r--openbox/dock.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/openbox/dock.c b/openbox/dock.c
index 3dda174d..d46f7674 100644
--- a/openbox/dock.c
+++ b/openbox/dock.c
@@ -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;