X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=src%2Fsystray%2Fsystraybar.c;h=4b1ac2033080fd85c2ab0a0f3143dbf7d5fcb9d7;hb=ef9c33a6a77e304bceaa00b146869bf3747aaa57;hp=5840bef066905d15b63cca4554d2587d9e76de16;hpb=3b8e1d7fae07407b54d7ec5f61a64420a4993234;p=chaz%2Ftint2 diff --git a/src/systray/systraybar.c b/src/systray/systraybar.c index 5840bef..4b1ac20 100644 --- a/src/systray/systraybar.c +++ b/src/systray/systraybar.c @@ -99,16 +99,19 @@ 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; // watch for the icon trying to resize itself! - XSelectInput(server.dsp, traywin->id, StructureNotifyMask); + XSelectInput(server.dsp, traywin->id, StructureNotifyMask|ResizeRedirectMask); // 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, ... + XSetWindowBackgroundPixmap (server.dsp, panel->main_win, systray.area.pix.pmap); // resize our window so that the new window can fit in it //fix_geometry();