]> Dogcows Code - chaz/tint2/commitdiff
fixed : redraw all task state when background changed
authorThierry Lorthiois <lorthiois@bbsoft.fr>
Fri, 22 Jan 2010 19:49:24 +0000 (19:49 +0000)
committerThierry Lorthiois <lorthiois@bbsoft.fr>
Fri, 22 Jan 2010 19:49:24 +0000 (19:49 +0000)
src/panel.c
src/systray/systraybar.c

index 0c5c3837b4825003dc2b71666cc086e017872dc6..e0390c19b7ed93f17838158ac1574162e9211732 100644 (file)
@@ -596,6 +596,15 @@ void set_panel_background(Panel *p)
                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);
+               }
+       }
 }
 
 
index a0c1f3c716ee275136da229a10b7ed7513de9051..8b613a6fc7ecd0602a32edd3192d975a510614d6 100644 (file)
@@ -345,7 +345,17 @@ gboolean add_icon(Window id)
 
        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 ) {
This page took 0.025588 seconds and 4 git commands to generate.