From 0325a782f42663c10873e587b72a9e3eceec83e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Thu, 30 Jun 2011 23:05:51 +0000 Subject: [PATCH] * 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 --- src/apps/mediaplayer/MainWin.cpp | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/src/apps/mediaplayer/MainWin.cpp b/src/apps/mediaplayer/MainWin.cpp index b0b114e14e..edacef971e 100644 --- a/src/apps/mediaplayer/MainWin.cpp +++ b/src/apps/mediaplayer/MainWin.cpp @@ -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);