From d4fe6ec1e77bb5c5af5a839e5529e53fcb82ca9e Mon Sep 17 00:00:00 2001 From: Stefano Ceccherini Date: Wed, 8 Jun 2005 15:27:23 +0000 Subject: [PATCH] Looks like our send_data() doesn't like to be called when a thread isn't running. Could just be that I'm not using it correctly, though. Menus now open under the 'real' haiku, though they still hang the window after some time git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13014 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/interface/MenuBar.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/kits/interface/MenuBar.cpp b/src/kits/interface/MenuBar.cpp index e6eba668f5..48a0b63597 100644 --- a/src/kits/interface/MenuBar.cpp +++ b/src/kits/interface/MenuBar.cpp @@ -349,9 +349,9 @@ BMenuBar::StartMenuBar(int32 menuIndex, bool sticky, bool showMenu, data.useRect = specialRect != NULL; if (data.useRect) data.rect = *specialRect; - + + resume_thread(fTrackingPID); send_data(fTrackingPID, 0, &data, sizeof(data)); - resume_thread(fTrackingPID); } else { _set_menu_sem_(window, B_NO_MORE_SEMS);