X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;ds=sidebyside;f=src%2Fpanel.c;h=203e818231b16d0e5d1b14c1aa38bb6b67639c03;hb=3fe84f48719226f0b23390df15c62eafbf7ed15c;hp=b6a0fd6d582317fbb120f101b56c95113cf9e274;hpb=1ac25b2b66dab98e7c85c4f483d202f95b432828;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); }