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
All checks were successful
Run ReCI Build Test / Explore-Gitea-Actions (push) Successful in 1m35s
This commit is contained in:
@@ -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: {
|
||||
|
Reference in New Issue
Block a user