[vlc-commits] macosx: choose more sane initial window position for \!video-deco window

David Fuhrmann git at videolan.org
Fri Sep 14 20:10:39 CEST 2012


vlc | branch: master | David Fuhrmann <david.fuhrmann at googlemail.com> | Fri Sep 14 20:05:41 2012 +0200| [2bcba23f488d761298340bed362eaa8ceb5a26fb] | committer: David Fuhrmann

macosx: choose more sane initial window position for \!video-deco window

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

 modules/gui/macosx/MainWindow.m |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/gui/macosx/MainWindow.m b/modules/gui/macosx/MainWindow.m
index fdcf21f..23615b2 100644
--- a/modules/gui/macosx/MainWindow.m
+++ b/modules/gui/macosx/MainWindow.m
@@ -1620,7 +1620,7 @@ static VLCMainWindow *_o_sharedInstance = nil;
         if (b_video_wallpaper)
             window_rect = [screen frame];
         else
-            window_rect = NSMakeRect(50, 50, 200, 200); // TODO: find something more sensible here
+            window_rect = [self frame];
 
         if (o_extra_video_window)
             [o_extra_video_window release];
@@ -1654,6 +1654,7 @@ static VLCMainWindow *_o_sharedInstance = nil;
         if (b_video_wallpaper)
             [o_extra_video_window orderBack:nil];
         else {
+            [o_extra_video_window center];
             [o_extra_video_window setFrameAutosaveName:@"extra-videowindow"];
             [o_detached_video_window setContentMinSize: NSMakeSize(f_min_video_height, f_min_video_height)];
         }



More information about the vlc-commits mailing list