X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Fpanel.c;h=900a317004c75445206752a15561ab83f3d21a10;hb=ac70f13fefaf052701a448ab2fe0751f039d1c8f;hp=c388c4459c24d539d33205601eeb51431c93f058;hpb=b1cdb484a3b06d20e0b9b14ae0c98721ad3fead0;p=chaz%2Ftint2 diff --git a/src/panel.c b/src/panel.c index c388c44..900a317 100644 --- a/src/panel.c +++ b/src/panel.c @@ -303,11 +303,11 @@ void init_panel_size_and_position(Panel *panel) int resize_panel(void *obj) -{ - int ret = resize_by_layout(obj); +{ + resize_by_layout(obj, 0); //printf("resize_panel\n"); - if (panel_mode != MULTI_DESKTOP) { + if (panel_mode != MULTI_DESKTOP && taskbar_enabled) { // propagate width/height on hidden taskbar int i, width, height; Panel *panel = (Panel*)obj; @@ -319,7 +319,7 @@ int resize_panel(void *obj) panel->taskbar[i].area.resize = 1; } } - return ret; + return 0; }