Skip to content

Commit a23f974

Browse files
committed
Temporarily disable DwmFlush()
For some reason this locks up the Windows compositor when called by Steam. I'm disabling it for now until we understand why and whether this can cause issues for other applications as well.
1 parent 536a1a2 commit a23f974

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/video/windows/SDL_windowsevents.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1865,10 +1865,12 @@ LRESULT CALLBACK WIN_WindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lPara
18651865
SDL_OnWindowLiveResizeUpdate(data->window);
18661866

18671867
#if !defined(SDL_PLATFORM_XBOXONE) && !defined(SDL_PLATFORM_XBOXSERIES)
1868+
#if 0 // This locks up the Windows compositor when called by Steam; disabling until we understand why
18681869
// Make sure graphics operations are complete for smooth refresh
18691870
if (data->videodata->DwmFlush) {
18701871
data->videodata->DwmFlush();
18711872
}
1873+
#endif
18721874
#endif
18731875
return 0;
18741876
}

0 commit comments

Comments
 (0)