[vlc-commits] macosx: fix menu support in detached video window

David Fuhrmann git at videolan.org
Fri May 11 09:18:37 CEST 2012


vlc | branch: master | David Fuhrmann <david.fuhrmann at googlemail.com> | Fri May 11 09:16:22 2012 +0200| [7ebcfcf446d55a29ea3dfe7783beea27557e83be] | committer: David Fuhrmann

macosx: fix menu support in detached video window

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7ebcfcf446d55a29ea3dfe7783beea27557e83be
---

 modules/gui/macosx/MainWindow.m |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/modules/gui/macosx/MainWindow.m b/modules/gui/macosx/MainWindow.m
index cccf6a7..a284396 100644
--- a/modules/gui/macosx/MainWindow.m
+++ b/modules/gui/macosx/MainWindow.m
@@ -1836,7 +1836,7 @@ static VLCMainWindow *_o_sharedInstance = nil;
         [o_fullscreen_window makeFirstResponder: [[o_video_view subviews] objectAtIndex:0]];
 
     [o_fullscreen_window makeKeyWindow];
-    [o_fullscreen_window setAcceptsMouseMovedEvents: TRUE];
+    [o_fullscreen_window setAcceptsMouseMovedEvents: YES];
 
     /* tell the fspanel to move itself to front next time it's triggered */
     [o_fspanel setVoutWasUpdated: (int)[[o_fullscreen_window screen] displayID]];
@@ -2494,6 +2494,8 @@ static VLCMainWindow *_o_sharedInstance = nil;
 
 - (void)awakeFromNib
 {
+    [self setAcceptsMouseMovedEvents: YES];
+
     if (b_dark_interface)
     {
         [self setBackgroundColor: [NSColor clearColor]];



More information about the vlc-commits mailing list