all repos — openbox @ 792d3e7a70ec5f0502d748dc96dc9b13b7c3971f

openbox fork - make it a bit more like ryudo

dont set a strut when there are no apps in the dock
Dana Jansens danakj@orodu.net
commit

792d3e7a70ec5f0502d748dc96dc9b13b7c3971f

parent

e7b2e52b788d21f0bad9a3c9b9c69d3db481cb4c

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

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

@@ -351,11 +351,14 @@ strw = ob_rr_theme->bwidth;

strh = ob_rr_theme->bwidth; } else { strw = dock->w; - strh = dock->h; + strh = dock->h; } /* set the strut */ - if (config_dock_floating) { + if (!dock->dock_apps) { + STRUT_PARTIAL_SET(dock_strut, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0); + } else if (config_dock_floating) { STRUT_PARTIAL_SET(dock_strut, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); } else {

@@ -446,7 +449,10 @@ /* not used for actually sizing shit */

dock->w -= ob_rr_theme->bwidth * 2; dock->h -= ob_rr_theme->bwidth * 2; - if (dock->w > 0 && dock->h > 0) { + if (dock->dock_apps) { + g_assert(dock->w > 0); + g_assert(dock->h > 0); + XMoveResizeWindow(ob_display, dock->frame, dock->x, dock->y, dock->w, dock->h);