steamcompmgr: don't erase multiple commits with future desired time

If the queue contains two commits with a desired time set in the
future, keep the second one in the queue instead of discarding it.
This commit is contained in:
Simon Ser 2023-11-24 14:31:52 +01:00 committed by Joshie
parent 3a3f6f8241
commit 146da86c89

View file

@ -6384,7 +6384,7 @@ void handle_done_commits_xwayland( xwayland_ctx_t *ctx )
if ( entry.desiredPresentTime > next_refresh_time ) if ( entry.desiredPresentTime > next_refresh_time )
{ {
commits_before_their_time.push_back( entry ); commits_before_their_time.push_back( entry );
break; continue;
} }
for ( steamcompmgr_win_t *w = ctx->list; w; w = w->xwayland().next ) for ( steamcompmgr_win_t *w = ctx->list; w; w = w->xwayland().next )