steamcompmgr: Tie-break dropdowns w/ transient-for presence

For Warframe language selection.
This commit is contained in:
Joshua Ashton 2022-03-17 23:19:01 +00:00
parent ade9eca823
commit 8a3a0893cd

View file

@ -2007,6 +2007,11 @@ is_focus_priority_greater( win *a, win *b )
a->is_dialog != b->is_dialog && b->is_dialog )
return true;
// Attempt to tie-break dropdowns by transient-for.
if ( win_maybe_a_dropdown( a ) && win_maybe_a_dropdown( b ) &&
!a->transientFor != !b->transientFor )
return !a->transientFor;
// The damage sequences are only relevant for game windows.
if ( win_has_game_id( a ) && a->damage_sequence != b->damage_sequence )
return a->damage_sequence > b->damage_sequence;