Systray Temp_Fix from keshto. first step.

git-svn-id: http://tint2.googlecode.com/svn/trunk@83 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
This commit is contained in:
lorthiois@bbsoft.fr 2009-06-02 22:02:03 +00:00
parent dee9b62866
commit fa749b7026
3 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,7 @@
2009-06-02
- Systray Temp_Fix from keshto
not yet perfect, but a first step
2009-05-31
- fixed issue 71 : time format %T %r

View 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,7 @@ 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);
XSetWindowBackgroundPixmap (server.dsp, panel->main_win, systray.area.pix.pmap);
// resize our window so that the new window can fit in it
//fix_geometry();

BIN
src/tint2

Binary file not shown.