@@ -131,6 +131,8 @@ LogScope g_WaitableLog("waitable");
131131
132132gamescope::ConVar<bool > cv_overlay_unmultiplied_alpha{ " overlay_unmultiplied_alpha" , false };
133133
134+ gamescope::ConVar<bool > cv_vr_show_forwarded_overlays{ " vr_show_forwarded_overlays" , false };
135+
134136std::string *g_pVROverlayKey = nullptr ;
135137bool g_bWasPartialComposite = false ;
136138
@@ -2463,6 +2465,8 @@ static void ForwardVROverlayTargets()
24632465 }
24642466 }
24652467 }
2468+
2469+ gpuvis_trace_printf ( " Forward VR Overlays" );
24662470}
24672471
24682472gamescope::ConVar<bool > cv_paint_primary_plane{ " paint_primary_plane" , true };
@@ -3669,7 +3673,7 @@ found:;
36693673 }
36703674
36713675 // Skip overlay targets
3672- if ( w->oulTargetVROverlay )
3676+ if ( w->oulTargetVROverlay && !cv_vr_show_forwarded_overlays )
36733677 {
36743678 continue ;
36753679 }
@@ -4561,7 +4565,7 @@ handle_desktop_window(steamcompmgr_win_t *w)
45614565 if ( w->type != steamcompmgr_win_type_t ::XWAYLAND )
45624566 return ;
45634567
4564- if ( w->xwayland ().a .override_redirect || w->oulTargetVROverlay )
4568+ if ( w->xwayland ().a .override_redirect || ( w->oulTargetVROverlay && !cv_vr_show_forwarded_overlays ) )
45654569 return ;
45664570
45674571 if ( win_maybe_a_dropdown ( w ) || win_is_useless ( w ) )
@@ -5224,7 +5228,7 @@ damage_win(xwayland_ctx_t *ctx, XDamageNotifyEvent *de)
52245228 bool bCareAboutWindow = true ;
52255229
52265230 if ( win_is_useless ( w ) || w->IsAnyOverlay () ||
5227- w->oulTargetVROverlay || w->isSysTrayIcon ||
5231+ ( w->oulTargetVROverlay && !cv_vr_show_forwarded_overlays ) || w->isSysTrayIcon ||
52285232 w->xwayland ().a .map_state != IsViewable )
52295233 {
52305234 bCareAboutWindow = false ;
@@ -8959,10 +8963,14 @@ steamcompmgr_main(int argc, char **argv)
89598963 ForwardVROverlayTargets ();
89608964
89618965 g_bUpdateForwardedVROverlays = false ;
8966+
8967+ bPainted = true ;
89628968 }
89638969
89648970 if ( bPainted )
89658971 {
8972+ GetBackend ()->OnEndFrame ();
8973+
89668974 hasRepaint = false ;
89678975 hasRepaintNonBasePlane = false ;
89688976 nIgnoredOverlayRepaints = 0 ;
0 commit comments