all repos — openbox @ e39762b05b87e9f3d125450a1a27618f52de1354

openbox fork - make it a bit more like ryudo

use the minsize to keep the stuff ni the dock off of the bevel edges etc
Dana Jansens danakj@orodu.net
commit

e39762b05b87e9f3d125450a1a27618f52de1354

parent

bf2f0c58ca4dce233a7f99ac3cc688271c87a8ec

1 files changed, 9 insertions(+), 1 deletions(-)

jump to
M openbox/dock.copenbox/dock.c

@@ -150,8 +150,11 @@ {

GList *it; int spot; int gravity; + int minw, minh; + + RrMinsize(dock->a_frame, &minw, &minh); - dock->w = dock->h = spot = 0; + dock->w = dock->h = 0; /* get the size */ for (it = dock->dock_apps; it; it = it->next) {

@@ -164,6 +167,8 @@ dock->w = MAX(dock->w, app->w);

dock->h += app->h; } } + + spot = (config_dock_horz ? minw : minh) / 2; /* position the apps */ for (it = dock->dock_apps; it; it = it->next) {

@@ -344,6 +349,9 @@ else

STRUT_SET(dock_strut, 0, 0, dock->w, 0); break; } + + dock->w += minw; + dock->h += minh; /* not used for actually sizing shit */ dock->w -= ob_rr_theme->bwidth * 2;