Move window tracking to TasksBox