fix
All checks were successful
pyrite-dev/milsko/pipeline/head This commit looks good

This commit is contained in:
Nishi 2026-04-29 12:27:53 +00:00
commit 572c170cd6

View file

@ -185,10 +185,13 @@ void MwView::MessageReceived(BMessage* message) {
void MwView::PostMessage(BMessage* message) {
BMessage copy = *message;
MwLL top = this->handle;
while(top->haiku.parent != NULL) top = top->haiku.parent;
copy.AddPointer("window-view", this);
this->Window()->PostMessage(&copy);
top->haiku.app->window->PostMessage(&copy);
}
void MwView::PostMessage(uint32 command) {
@ -413,7 +416,7 @@ MwLL MwLLCreateImpl(MwLL parent, int x, int y, int width, int height) {
r->haiku.app_thread = spawn_thread(app_thread, NULL, B_NORMAL_PRIORITY, p);
resume_thread(r->haiku.app_thread);
while(r->haiku.app == NULL) MwTimeSleep(10);
while(r->haiku.app == NULL || r->haiku.app->window == NULL || r->haiku.view == NULL) MwTimeSleep(10);
} else {
MwLL top = r;
while(top->haiku.parent != NULL) {