From 799869e3c7d10f28c8e5bb5835fa42eea3ccc190 Mon Sep 17 00:00:00 2001 From: Joshua Ashton Date: Fri, 5 May 2023 20:12:46 +0100 Subject: [PATCH] steamcompmgr: Always send frame callback for any current surface (not just main) Fixes a stall with the WSI Layer in the Granite latency test --- src/steamcompmgr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/steamcompmgr.cpp b/src/steamcompmgr.cpp index 7779074..4160dad 100644 --- a/src/steamcompmgr.cpp +++ b/src/steamcompmgr.cpp @@ -4487,7 +4487,7 @@ steamcompmgr_send_done( steamcompmgr_win_t *w, uint64_t vblank_idx, struct times { wlr_surface *main_surface = w->main_surface(); wlr_surface *current_surface = w->current_surface(); - bool bSendCallback = main_surface != nullptr; + bool bSendCallback = current_surface != nullptr; int nRefresh = g_nNestedRefresh ? g_nNestedRefresh : g_nOutputRefresh; int nTargetFPS = g_nSteamCompMgrTargetFPS;