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) {
}
}
+ spot = (config_dock_horz ? minw : minh) / 2;
+
/* position the apps */
for (it = dock->dock_apps; it; it = it->next) {
struct DockApp *app = it->data;
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;