This commit is contained in:
parent
94c4bcd2cc
commit
572c170cd6
1 changed files with 5 additions and 2 deletions
|
|
@ -185,10 +185,13 @@ void MwView::MessageReceived(BMessage* message) {
|
||||||
|
|
||||||
void MwView::PostMessage(BMessage* message) {
|
void MwView::PostMessage(BMessage* message) {
|
||||||
BMessage copy = *message;
|
BMessage copy = *message;
|
||||||
|
MwLL top = this->handle;
|
||||||
|
|
||||||
|
while(top->haiku.parent != NULL) top = top->haiku.parent;
|
||||||
|
|
||||||
copy.AddPointer("window-view", this);
|
copy.AddPointer("window-view", this);
|
||||||
|
|
||||||
this->Window()->PostMessage(©);
|
top->haiku.app->window->PostMessage(©);
|
||||||
}
|
}
|
||||||
|
|
||||||
void MwView::PostMessage(uint32 command) {
|
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);
|
r->haiku.app_thread = spawn_thread(app_thread, NULL, B_NORMAL_PRIORITY, p);
|
||||||
resume_thread(r->haiku.app_thread);
|
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 {
|
} else {
|
||||||
MwLL top = r;
|
MwLL top = r;
|
||||||
while(top->haiku.parent != NULL) {
|
while(top->haiku.parent != NULL) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue