steamcompmgr: Always send frame callback for any current surface (not just main)

Fixes a stall with the WSI Layer in the Granite latency test
This commit is contained in:
Joshua Ashton 2023-05-05 20:12:46 +01:00 committed by Joshie
parent dd7df68143
commit 799869e3c7

View file

@ -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;