fixed issue 13 git-svn-id: http://tint2.googlecode.com/svn/trunk@30 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
lorthiois@bbsoft.fr lorthiois@bbsoft.fr@121b4492-b84c-0410-8b4c-0d4edfb3f3cc
3 files changed,
7 insertions(+),
3 deletions(-)
M
src/panel.c
→
src/panel.c
@@ -16,6 +16,7 @@ * along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. **************************************************************************/ +#include <stdio.h> #include <X11/Xlib.h> #include <X11/Xutil.h> #include <X11/Xatom.h>@@ -196,8 +197,8 @@ break;
} } } while (--c > 0); - - //if (ret == None) printf("pas de background\n"); + + if (ret == None) fprintf(stderr, "unknown background\n"); return ret; }@@ -210,7 +211,7 @@ if (panel.area.pix.pmap) XFreePixmap (server.dsp, panel.area.pix.pmap);
panel.area.pix.pmap = XCreatePixmap (server.dsp, server.root_win, panel.area.width, panel.area.height, server.depth); // add layer of root pixmap - XCopyArea (server.dsp, wall, panel.area.pix.pmap, server.gc, server.posx, server.posy, panel.area.width, panel.area.height, 0, 0); + XCopyArea(server.dsp, wall, panel.area.pix.pmap, server.gc, server.posx, server.posy, panel.area.width, panel.area.height, 0, 0); // draw background panel cairo_surface_t *cs;