*fix* better internal urgent task handling

*fix* urgent task blinks on all desktops for omnipresent windows
*fix* better active window handling on desktop changes
*fix* better active window handling if switching omnipresent property



git-svn-id: http://tint2.googlecode.com/svn/trunk@302 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
This commit is contained in:
Andreas.Fink85
2009-12-29 19:55:25 +00:00
parent 890262073a
commit c93bf5e1f3
7 changed files with 62 additions and 81 deletions

View File

@@ -169,6 +169,25 @@ Task *task_get_task (Window win)
}
GSList* task_get_tasks(Window win)
{
GSList* l = 0;
GSList* it;
Task* tsk;
int i, j;
for (i=0; i<nb_panel; ++i) {
for (j=0; j<panel1[i].nb_desktop; ++j) {
for (it=panel1[i].taskbar[j].area.list; it; it=it->next) {
tsk = it->data;
if (win == tsk->win)
l = g_slist_prepend(l, tsk);
}
}
}
return l;
}
void task_refresh_tasklist ()
{
Window *win, active_win;
@@ -180,11 +199,7 @@ void task_refresh_tasklist ()
if (!win) return;
// Remove any old and set active win
active_win = window_get_active ();
if (task_active) {
task_active->area.is_active = 0;
task_active = 0;
}
active_task();
for (i=0 ; i < nb_panel ; i++) {
for (j=0 ; j < panel1[i].nb_desktop ; j++) {
@@ -193,11 +208,6 @@ void task_refresh_tasklist ()
tsk = l0->data;
l0 = l0->next;
if (tsk->win == active_win) {
tsk->area.is_active = 1;
task_active = tsk;
}
for (k = 0; k < num_results; k++) {
if (tsk->win == win[k]) break;
}