]> Dogcows Code - chaz/tint2/blobdiff - src/panel.c
fixed snapshot command (-s). more needed.
[chaz/tint2] / src / panel.c
index b6a0fd6d582317fbb120f101b56c95113cf9e274..203e818231b16d0e5d1b14c1aa38bb6b67639c03 100644 (file)
@@ -27,6 +27,7 @@
 #include <pango/pangocairo.h>
 
 #include "server.h"
+#include "config.h"
 #include "window.h"
 #include "task.h"
 #include "panel.h"
@@ -190,8 +191,8 @@ void init_panel()
                //printf("panel %d : %d, %d, %d, %d\n", i, p->posx, p->posy, p->area.width, p->area.height);
                set_panel_properties(p);
                set_panel_background(p);
-               if (i >= old_nb_panel) {
-                       // map new panel
+               if (i >= old_nb_panel && snapshot_path == 0) {
+                       // if we are not in 'snapshot' mode then map new panel
                        XMapWindow (server.dsp, p->main_win);
                }
 
This page took 0.022519 seconds and 4 git commands to generate.