* Removed the superfluous wait time until the context menu pops up. This fixes

the video hanging everytime you open the context menu.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42351 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2011-06-30 23:05:51 +00:00
parent c54e3124f6
commit 0325a782f4
+1 -14
View File
@@ -1920,20 +1920,7 @@ MainWin::_MouseDown(BMessage* msg, BView* originalHandler)
fMouseDownTracking = true;
}
// pop up a context menu if right mouse button is down for 200 ms
if ((buttons & B_SECONDARY_MOUSE_BUTTON) == 0)
return;
bigtime_t start = system_time();
bigtime_t delay = 200000;
BPoint location;
do {
fVideoView->GetMouse(&location, &buttons);
if ((buttons & B_SECONDARY_MOUSE_BUTTON) == 0)
break;
snooze(1000);
} while (system_time() - start < delay);
// pop up a context menu if right mouse button is down
if ((buttons & B_SECONDARY_MOUSE_BUTTON) != 0)
_ShowContextMenu(screenWhere);