diff --git a/haiku/window.cpp b/haiku/window.cpp index 9b22b5ea..6f48611f 100644 --- a/haiku/window.cpp +++ b/haiku/window.cpp @@ -143,6 +143,7 @@ uiWindow *uiNewWindow(const char *title, int width, int height, int hasMenubar) title, B_TITLED_WINDOW, B_ASYNCHRONOUS_CONTROLS); + w->window->w = w; uiWindowOnClosing(w, defaultOnClosing, NULL);