dont set a strut when there are no apps in the dock

This commit is contained in:
Dana Jansens 2003-09-03 21:07:46 +00:00
parent e7b2e52b78
commit 792d3e7a70

View file

@ -355,7 +355,10 @@ void dock_configure()
} }
/* set the strut */ /* 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, STRUT_PARTIAL_SET(dock_strut, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0); 0, 0, 0, 0, 0, 0, 0, 0);
} else { } else {
@ -446,7 +449,10 @@ void dock_configure()
dock->w -= ob_rr_theme->bwidth * 2; dock->w -= ob_rr_theme->bwidth * 2;
dock->h -= 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, XMoveResizeWindow(ob_display, dock->frame,
dock->x, dock->y, dock->w, dock->h); dock->x, dock->y, dock->w, dock->h);