]> Dogcows Code - chaz/tint2/blobdiff - src/tint.c
Scrolling through tasks by schattenprinz
[chaz/tint2] / src / tint.c
index 05d50f67c14e085d3c4ec6117c8ab29b77045d07..1380d657dce79f36431581024c3f0d15ab321ef1 100644 (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);
+                       }
        }
 }
 
This page took 0.021642 seconds and 4 git commands to generate.