ref: c3d7782a0cbb0aee91edae9b2850d053f27a6f0e
parent: eec4e10419d1fa8955c30bacb4b49b8fdb426f78
author: iyzsong <iyzsong@envs.net>
date: Fri Apr 5 06:54:09 EDT 2024
haiku: fix application close (via ALT+Q)
--- a/gui-haiku/screen.cpp
+++ b/gui-haiku/screen.cpp
@@ -251,6 +251,12 @@
view->MakeFocus();
window->Show();
}
+
+ bool QuitRequested() override {
+ BMessage message(B_QUIT_REQUESTED);
+ window->PostMessage(&message);
+ return true;
+ }
};
#define sApp ((Application *)be_app)