steamcompmgr: Tie-break dropdowns w/ transient-for presence
For Warframe language selection.
This commit is contained in:
parent
ade9eca823
commit
8a3a0893cd
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue