fixed bug : clock resize when date changed, number of desktop changed

git-svn-id: http://tint2.googlecode.com/svn/trunk@51 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
This commit is contained in:
lorthiois@bbsoft.fr
2009-02-10 23:16:10 +00:00
parent b73b15d4be
commit 6c57698291
21 changed files with 509 additions and 361 deletions

View File

@@ -91,6 +91,7 @@ void remove_task (Task *tsk)
if (!tsk) return;
Window win = tsk->win;
int desktop = tsk->desktop;
// free title and icon just for the first task
// even with task_on_all_desktop and with task_on_all_panel
@@ -106,8 +107,7 @@ void remove_task (Task *tsk)
Taskbar *tskbar;
for (i=0 ; i < nb_panel ; i++) {
for (j=0 ; j < panel1[i].nb_desktop ; j++) {
if (tsk->desktop != ALLDESKTOP && tsk->desktop != j) continue;
//if (!panel1[i].taskbar) continue;
if (desktop != ALLDESKTOP && desktop != j) continue;
GSList *l0;
tskbar = &panel1[i].taskbar[j];