]> Dogcows Code - chaz/tint2/blobdiff - src/panel.c
*fix* issue 297
[chaz/tint2] / src / panel.c
index c388c4459c24d539d33205601eeb51431c93f058..900a317004c75445206752a15561ab83f3d21a10 100644 (file)
@@ -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;
 }
 
 
This page took 0.025997 seconds and 4 git commands to generate.