Scrolling through tasks by schattenprinz

git-svn-id: http://tint2.googlecode.com/svn/trunk@275 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
This commit is contained in:
thilor77
2009-11-18 05:13:38 +00:00
parent c7346fc56b
commit f43facc277
5 changed files with 71 additions and 1 deletions

View File

@@ -223,6 +223,20 @@ void window_action (Task *tsk, int action)
windows_set_desktop(tsk->win, desk);
if (desk == server.desktop)
set_active(tsk->win);
break;
case NEXT_TASK:
if (task_active) {
Task *tsk1;
tsk1 = next_task(task_active);
set_active(tsk1->win);
}
break;
case PREV_TASK:
if (task_active) {
Task *tsk1;
tsk1 = prev_task(task_active);
set_active(tsk1->win);
}
}
}