From ce0be66ff4a379229bdad0d02d14ff3dcd585a34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Sun, 12 Mar 2006 22:04:35 +0000 Subject: [PATCH] When the creation of the window failed, all further messages accidently went to the ServerApp, instead of being dropped - the window link is now updated correctly in that case. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16750 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/interface/Window.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/kits/interface/Window.cpp b/src/kits/interface/Window.cpp index 77d39e2f7f..796d5f953c 100644 --- a/src/kits/interface/Window.cpp +++ b/src/kits/interface/Window.cpp @@ -2274,8 +2274,6 @@ BWindow::_InitData(BRect frame, const char* title, window_look look, if (fLink->FlushWithReply(code) == B_OK && code == B_OK && fLink->Read(&sendPort) == B_OK) { - fLink->SetSenderPort(sendPort); - // read the frame size and its limits that were really // enforced on the server side @@ -2290,6 +2288,9 @@ BWindow::_InitData(BRect frame, const char* title, window_look look, } else sendPort = -1; + // Redirect our link to the new window connection + fLink->SetSenderPort(sendPort); + if (locked) be_app->Unlock();