From c7962c3e6bce0e667b549f59705701e428161d34 Mon Sep 17 00:00:00 2001 From: Joshua Ashton Date: Thu, 24 Mar 2022 18:58:23 +0000 Subject: [PATCH] steamcompmgr: Tie break by map sequence before damage sequence --- src/steamcompmgr.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/steamcompmgr.cpp b/src/steamcompmgr.cpp index ca725bf..1a3ede6 100644 --- a/src/steamcompmgr.cpp +++ b/src/steamcompmgr.cpp @@ -2029,6 +2029,9 @@ is_focus_priority_greater( win *a, win *b ) !a->transientFor != !b->transientFor ) return !a->transientFor; + if ( win_has_game_id( a ) && a->map_sequence != b->map_sequence ) + return a->map_sequence > b->map_sequence; + // 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;