X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Fpanel.c;h=203e818231b16d0e5d1b14c1aa38bb6b67639c03;hb=46f53881443c06b9216e78baab429fd45205aa20;hp=b6a0fd6d582317fbb120f101b56c95113cf9e274;hpb=9f561215b52f7e275bbe50faa68cfc9fbc935994;p=chaz%2Ftint2 diff --git a/src/panel.c b/src/panel.c index b6a0fd6..203e818 100644 --- a/src/panel.c +++ b/src/panel.c @@ -27,6 +27,7 @@ #include #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); }