[vlc-commits] macosx: always make the fullscreen window front when in fullscreen

David Fuhrmann git at videolan.org
Sun Feb 5 14:56:06 CET 2012


vlc | branch: master | David Fuhrmann <david.fuhrmann at googlemail.com> | Sat Feb  4 18:14:58 2012 +0100| [28dd1b12276e44ea598c75c4b893cb574375541a] | committer: Felix Paul Kühne

macosx: always make the fullscreen window front when in fullscreen

This fixes several issues when you move your mouse outside the fullscreen at an
sedondary display and reenter vlc with the mouse. Now, the controls are shown
reliably and the mouse movement actions work as aspected in that case.

Signed-off-by: Felix Paul Kühne <fkuehne at videolan.org>

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

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

diff --git a/modules/gui/macosx/MainWindow.m b/modules/gui/macosx/MainWindow.m
index 4d88368..04a3ce8 100644
--- a/modules/gui/macosx/MainWindow.m
+++ b/modules/gui/macosx/MainWindow.m
@@ -1074,7 +1074,12 @@ static VLCMainWindow *_o_sharedInstance = nil;
         //FIXME! b_chapters = p_input->stream.i_area_nb > 1;
 
         if (cachedInputState == PLAYING_S || b_buffering == YES)
-            [self makeKeyAndOrderFront: nil];
+        {
+            if( b_fullscreen && o_fullscreen_window != nil )
+                [o_fullscreen_window makeKeyAndOrderFront: nil];
+            else
+                [self makeKeyAndOrderFront: nil];
+        }
         vlc_object_release( p_input );
     }
 



More information about the vlc-commits mailing list