]> Dogcows Code - chaz/tint2/blobdiff - src/systray/systraybar.c
clock command on rigt/left click by dmitry.medvinsky
[chaz/tint2] / src / systray / systraybar.c
index 232f174b1311124225d0d6e89f5ba678b6c060fd..ef1578fcf2791514fc868e474e2c87640ddfe5c6 100644 (file)
@@ -99,7 +99,7 @@ void draw_systray(void *obj, cairo_t *c, int active)
        GSList *l;
        int icon_size;
 
-       printf("draw_systray %d %d\n", systray.area.posx, systray.area.width);
+       //printf("draw_systray %d %d\n", systray.area.posx, systray.area.width);
        icon_size = sysbar->area.height - (2 * sysbar->area.pix.border.width) - (2 * sysbar->area.paddingy);
        for (l = systray.list_icons; l ; l = l->next) {
                traywin = (TrayWindow*)l->data;
@@ -109,6 +109,8 @@ void draw_systray(void *obj, cairo_t *c, int active)
 
                // position and size the icon window
                XMoveResizeWindow(server.dsp, traywin->id, traywin->x, traywin->y, icon_size, icon_size);
+               // ceci intervertie les fonds : le premier icone prend le fond du dernier
+               // le dernier prend le fond de l'avant dernier, ...
 
                // resize our window so that the new window can fit in it
                //fix_geometry();
@@ -122,6 +124,7 @@ void draw_systray(void *obj, cairo_t *c, int active)
                // show the window
                XMapRaised(server.dsp, traywin->id);
        }
+       XSetWindowBackgroundPixmap (server.dsp, panel->main_win, systray.area.pix.pmap);
 }
 
 
This page took 0.025307 seconds and 4 git commands to generate.