basic systray with some bugs, update tintrc sample file

git-svn-id: http://tint2.googlecode.com/svn/trunk@64 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
This commit is contained in:
lorthiois@bbsoft.fr
2009-02-28 23:04:53 +00:00
parent 2121a32916
commit 67f875338b
23 changed files with 365 additions and 118 deletions

View File

@@ -35,10 +35,13 @@
// 4) redraw child
void refresh (Area *a)
{
if (!a->visible) return;
// don't draw and resize hide objects
if (!a->on_screen) return;
size(a);
// don't draw transparent objects (without foreground and without background)
if (a->redraw) {
a->redraw = 0;
//printf("draw area posx %d, width %d\n", a->posx, a->width);
@@ -49,6 +52,7 @@ void refresh (Area *a)
// draw current Area
Pixmap *pmap = (a->is_active == 0) ? (&a->pix.pmap) : (&a->pix_active.pmap);
if (*pmap == 0) printf("empty area posx %d, width %d\n", a->posx, a->width);
XCopyArea (server.dsp, *pmap, ((Panel *)a->panel)->temp_pmap, server.gc, 0, 0, a->width, a->height, a->posx, a->posy);
// and then refresh child object