Fix OnClose not being called on Windows. Still doesn't work correctly on Linux (Are we handling the XEvent?)
All checks were successful
Run ReCI Build Test / Explore-Gitea-Actions (push) Successful in 1m35s

This commit is contained in:
2025-05-22 17:25:38 -05:00
parent aebc6fcfd3
commit ffdafedb94

View File

@@ -30,8 +30,9 @@ LRESULT CALLBACK WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
auto* window = reinterpret_cast<RWindow*>( GetWindowLongPtr(hwnd, GWLP_USERDATA) );
switch (uMsg) {
case WM_CLOSE: {
DestroyWindow(hwnd);
window->processOnClose();
DestroyWindow(hwnd);
}
case WM_DESTROY: {