fixed snapshot command (-s). more needed.

git-svn-id: http://tint2.googlecode.com/svn/trunk@404 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
This commit is contained in:
thilor77
2010-03-26 23:16:25 +00:00
parent 788cfce122
commit a26a3e4635
6 changed files with 112 additions and 326 deletions

View 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);
}