From f17a85d17dcca51bf9032b13f42a1926f9d7ecd8 Mon Sep 17 00:00:00 2001 From: Stefano Ceccherini Date: Tue, 5 Dec 2006 13:53:51 +0000 Subject: [PATCH] set the extrarect also for menubars (but it's not yet used) git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19434 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/interface/MenuBar.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/kits/interface/MenuBar.cpp b/src/kits/interface/MenuBar.cpp index de7a62a53c..143b386370 100644 --- a/src/kits/interface/MenuBar.cpp +++ b/src/kits/interface/MenuBar.cpp @@ -382,13 +382,16 @@ BMenuBar::TrackTask(void *arg) receive_data(&id, &data, sizeof(data)); BMenuBar *menuBar = data.menuBar; + if (data.useRect) + menuBar->fExtraRect = &data.rect; menuBar->SetStickyMode(data.sticky); int32 action; menuBar->Track(&action, data.menuIndex, data.showMenu); menuBar->fTracking = false; - + menuBar->fExtraRect = NULL; + // Sends a _MENUS_DONE_ message to the BWindow. // Weird: There is a _MENUS_DONE_ message but not a // _MENUS_BEGINNING_ message, in fact the MenusBeginning() @@ -399,7 +402,7 @@ BMenuBar::TrackTask(void *arg) _set_menu_sem_(window, B_BAD_SEM_ID); delete_sem(menuBar->fMenuSem); menuBar->fMenuSem = B_BAD_SEM_ID; - + return 0; }