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
This commit is contained in:
@@ -382,12 +382,15 @@ BMenuBar::TrackTask(void *arg)
|
|||||||
receive_data(&id, &data, sizeof(data));
|
receive_data(&id, &data, sizeof(data));
|
||||||
|
|
||||||
BMenuBar *menuBar = data.menuBar;
|
BMenuBar *menuBar = data.menuBar;
|
||||||
|
if (data.useRect)
|
||||||
|
menuBar->fExtraRect = &data.rect;
|
||||||
menuBar->SetStickyMode(data.sticky);
|
menuBar->SetStickyMode(data.sticky);
|
||||||
|
|
||||||
int32 action;
|
int32 action;
|
||||||
menuBar->Track(&action, data.menuIndex, data.showMenu);
|
menuBar->Track(&action, data.menuIndex, data.showMenu);
|
||||||
|
|
||||||
menuBar->fTracking = false;
|
menuBar->fTracking = false;
|
||||||
|
menuBar->fExtraRect = NULL;
|
||||||
|
|
||||||
// Sends a _MENUS_DONE_ message to the BWindow.
|
// Sends a _MENUS_DONE_ message to the BWindow.
|
||||||
// Weird: There is a _MENUS_DONE_ message but not a
|
// Weird: There is a _MENUS_DONE_ message but not a
|
||||||
|
|||||||
Reference in New Issue
Block a user