]> git.sesse.net Git - vlc/commitdiff
beos/VideoOutput.cpp : make the BPopUpMenu stickable
authorEric Petit <titer@videolan.org>
Sat, 14 Jun 2003 12:32:16 +0000 (12:32 +0000)
committerEric Petit <titer@videolan.org>
Sat, 14 Jun 2003 12:32:16 +0000 (12:32 +0000)
modules/gui/beos/VideoOutput.cpp

index f7f5979a05dee7395c3e39975455453f93c623da..bcdbfbb75b3fcd4e6c8961b2dc0153f39b867836 100644 (file)
@@ -2,7 +2,7 @@
  * vout_beos.cpp: beos video output display method
  *****************************************************************************
  * Copyright (C) 2000, 2001 VideoLAN
- * $Id: VideoOutput.cpp,v 1.20 2003/06/03 12:06:29 titer Exp $
+ * $Id: VideoOutput.cpp,v 1.21 2003/06/14 12:32:16 titer Exp $
  *
  * Authors: Jean-Marc Dressler <polux@via.ecp.fr>
  *          Samuel Hocevar <sam@zoy.org>
@@ -1198,7 +1198,9 @@ VLCView::MouseDown(BPoint where)
 
                                menu->SetTargetForItems( this );
                                ConvertToScreen( &where );
-                               menu->Go( where, true, false, true );
+                               BRect mouseRect( where.x - 5, where.y - 5,
+                                                where.x + 5, where.y + 5 );
+                               menu->Go( where, true, false, mouseRect, true );
                }
                }
        }