By default, dialogs inherit the skip taskbar flag. However, when passing focus (e.g. when the currently focused window is unmapped), selecting an eligible window for focus transition would skip windows with the skip taskbar/pager flag.
As a result, closing a dialog transient to another dialog would give focus to the parent window.
To avoid that issue, make sure we include windows with skip taskbar/skip pager when searching for another window to transition focus.