Apply the important parts of the exit fix (#20607)

This commit is contained in:
Henrik Rydgård committed 2025-07-09 17:12:01 +02:00
1 parent 7231f8f2a1
commit 025ad53a43
2 files changed
+1 -2

No files matched your search

-1
View File
@@ -312,7 +312,6 @@ void MainThreadFunc() {
Core_StateProcessed();
NativeFrame(graphicsContext);
}
Core_WaitInactive();
g_inLoop = false;
+1 -1
View File
@@ -1142,8 +1142,8 @@ namespace MainWindow
case WM_DESTROY:
InputDevice::StopPolling();
MainThread_Stop();
WindowsRawInput::Shutdown();
MainThread_Stop();
KillTimer(hWnd, TIMER_CURSORUPDATE);
KillTimer(hWnd, TIMER_CURSORMOVEUPDATE);
// Main window is gone, this tells the message loop to exit.