Fix app switcher behavior when alt-tabbing out of a modal window

Old behavior: when alt-tabbing out of a modal window, its parent window became the first target window, which resulted in the modal window to be the "new" focused window
Wanted behavior: The next "main" window is targeted