]> Dogcows Code - chaz/tint2/blobdiff - src/util/area.c
basic systray with some bugs, update tintrc sample file
[chaz/tint2] / src / util / area.c
index 4b45fbd97fc8e4e4acb09b2009bc8a4534a8cd68..61919f9ae81e301f5500b932bdeb86a7a90b9f14 100644 (file)
 // 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
This page took 0.021955 seconds and 4 git commands to generate.