When the user clicks on a task.
If the task is elementary (no decomposition), the window that contains the task appears at the front and becomes the current window.
If the task is composite (with decomposition), the window that contains the decomposition appears at the front and becomes the current window.