From 4ab96afd71e6988b8d60935bed138538cc1046f3 Mon Sep 17 00:00:00 2001 From: Rene Gollent Date: Tue, 4 May 2010 14:24:12 +0000 Subject: [PATCH] Use openAnyways mode instead of click to open rect for tracker context menus. May help with #3267. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36607 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/tracker/ContainerWindow.cpp | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/src/kits/tracker/ContainerWindow.cpp b/src/kits/tracker/ContainerWindow.cpp index 35deac37b2..ce72bfb318 100644 --- a/src/kits/tracker/ContainerWindow.cpp +++ b/src/kits/tracker/ContainerWindow.cpp @@ -2439,8 +2439,6 @@ BContainerWindow::ShowDropContextMenu(BPoint loc) PoseView()->ConvertToScreen(&global); PoseView()->CommitActivePose(); - BRect mouseRect(global.x, global.y, global.x, global.y); - mouseRect.InsetBy(-5, -5); // Change the "Create Link" item - allow user to // create relative links with the Shift key down. @@ -2455,7 +2453,7 @@ BContainerWindow::ShowDropContextMenu(BPoint loc) item->SetMessage(new BMessage(kCreateLink)); } - item = fDropContextMenu->Go(global, true, true, mouseRect); + item = fDropContextMenu->Go(global, true, true); if (item) return item->Command(); @@ -2470,8 +2468,6 @@ BContainerWindow::ShowContextMenu(BPoint loc, const entry_ref *ref, BView *) BPoint global(loc); PoseView()->ConvertToScreen(&global); PoseView()->CommitActivePose(); - BRect mouseRect(global.x, global.y, global.x, global.y); - mouseRect.InsetBy(-5, -5); if (ref) { // clicked on a pose, show file or volume context menu @@ -2488,14 +2484,12 @@ BContainerWindow::ShowContextMenu(BPoint loc, const entry_ref *ref, BView *) BPoint global(loc); PoseView()->ConvertToScreen(&global); PoseView()->CommitActivePose(); - BRect mouseRect(global.x, global.y, global.x, global.y); - mouseRect.InsetBy(-5, -5); EnableNamedMenuItem(fTrashContextMenu, kEmptyTrash, static_cast(be_app)->TrashFull()); SetupNavigationMenu(ref, fTrashContextMenu); - fTrashContextMenu->Go(global, true, false, mouseRect, true); + fTrashContextMenu->Go(global, true, true, true); } else { bool showAsVolume = false; @@ -2591,7 +2585,7 @@ BContainerWindow::ShowContextMenu(BPoint loc, const entry_ref *ref, BView *) UpdateMenu(fContextMenu, kPosePopUpContext); - fContextMenu->Go(global, true, false, mouseRect, true); + fContextMenu->Go(global, true, true, true); } } } else if (fWindowContextMenu) { @@ -2605,7 +2599,7 @@ BContainerWindow::ShowContextMenu(BPoint loc, const entry_ref *ref, BView *) SetupNavigationMenu(ref, fWindowContextMenu); UpdateMenu(fWindowContextMenu, kWindowPopUpContext); - fWindowContextMenu->Go(global, true, false, mouseRect, true); + fWindowContextMenu->Go(global, true, true, true); } fContextMenu = NULL; }