all repos — tint2 @ de5fab0830dd7eacf6352f46ab3bc69acb560ef1

fork of the tint2 desktop panel for my custom setup - only minimized windows across all desktops for the taskbar

fixed : redraw all task state when background changed

git-svn-id: http://tint2.googlecode.com/svn/trunk@371 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
thilor77 thilor77@121b4492-b84c-0410-8b4c-0d4edfb3f3cc
commit

de5fab0830dd7eacf6352f46ab3bc69acb560ef1

parent

fc22028d272c033d7b032c536239e0ec7970d9a0

2 files changed, 19 insertions(+), 0 deletions(-)

jump to
M src/panel.csrc/panel.c

@@ -596,6 +596,15 @@ for (l0 = p->area.list; l0 ; l0 = l0->next) {

a = l0->data; set_redraw(a); } + // reset task 'state_pix' + int i; + Taskbar *tskbar; + for (i=0 ; i < p->nb_desktop ; i++) { + tskbar = &p->taskbar[i]; + for (l0 = tskbar->area.list; l0 ; l0 = l0->next) { + set_task_redraw((Task *)l0->data); + } + } }
M src/systray/systraybar.csrc/systray/systraybar.c

@@ -345,7 +345,17 @@ int hide = 0;

error = FALSE; XWindowAttributes attr; +/* GSList *l; + printf("add_icon\n"); + for (l = systray.list_icons; l ; l = l->next) { + traywin = (TrayWindow*)l->data; + //if (traywin->hide) continue; + + XGetWindowAttributes(server.dsp, traywin->tray_id, &attr); + printf(" icon %lx, depth %d, width %d, height %d\n", traywin->tray_id, attr.depth, attr.width, attr.height); + }*/ XGetWindowAttributes(server.dsp, id, &attr); + //printf("last icon %lx, depth %d, width %d, height %d\n", id, attr.depth, attr.width, attr.height); unsigned long mask = 0; XSetWindowAttributes set_attr; if (attr.depth != server.depth || systray.alpha != 100 || systray.brightness != 0 || systray.saturation != 0 ) {