[haiku-commits] r39482 - haiku/trunk/src/apps/terminal

  • From: ingo_weinhold@xxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Thu, 18 Nov 2010 16:55:15 +0100 (CET)

Author: bonefish
Date: 2010-11-18 16:55:15 +0100 (Thu, 18 Nov 2010)
New Revision: 39482
Changeset: http://dev.haiku-os.org/changeset/39482

Modified:
   haiku/trunk/src/apps/terminal/TermWindow.cpp
Log:
Don't require the user to hold the mouse perfectly still when click-opening the
tab menu.


Modified: haiku/trunk/src/apps/terminal/TermWindow.cpp
===================================================================
--- haiku/trunk/src/apps/terminal/TermWindow.cpp        2010-11-18 15:41:06 UTC 
(rev 39481)
+++ haiku/trunk/src/apps/terminal/TermWindow.cpp        2010-11-18 15:55:15 UTC 
(rev 39482)
@@ -1070,7 +1070,11 @@
        popUpMenu->AddItem(new BMenuItem(B_TRANSLATE("Close tab"), message));
        popUpMenu->SetAsyncAutoDestruct(true);
        popUpMenu->SetTargetForItems(BMessenger(this));
-       popUpMenu->Go(tabView->ConvertToScreen(point), true, true, true);
+
+       BPoint screenWhere = tabView->ConvertToScreen(point);
+       BRect mouseRect(screenWhere, screenWhere);
+       mouseRect.InsetBy(-4.0, -4.0);
+       popUpMenu->Go(screenWhere, true, true, mouseRect, true);
 }
 
 


Other related posts:

  • » [haiku-commits] r39482 - haiku/trunk/src/apps/terminal - ingo_weinhold