Commit 2bcba23f authored by David Fuhrmann's avatar David Fuhrmann

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

parent 895880e9
...@@ -1620,7 +1620,7 @@ static VLCMainWindow *_o_sharedInstance = nil; ...@@ -1620,7 +1620,7 @@ static VLCMainWindow *_o_sharedInstance = nil;
if (b_video_wallpaper) if (b_video_wallpaper)
window_rect = [screen frame]; window_rect = [screen frame];
else else
window_rect = NSMakeRect(50, 50, 200, 200); // TODO: find something more sensible here window_rect = [self frame];
if (o_extra_video_window) if (o_extra_video_window)
[o_extra_video_window release]; [o_extra_video_window release];
...@@ -1654,6 +1654,7 @@ static VLCMainWindow *_o_sharedInstance = nil; ...@@ -1654,6 +1654,7 @@ static VLCMainWindow *_o_sharedInstance = nil;
if (b_video_wallpaper) if (b_video_wallpaper)
[o_extra_video_window orderBack:nil]; [o_extra_video_window orderBack:nil];
else { else {
[o_extra_video_window center];
[o_extra_video_window setFrameAutosaveName:@"extra-videowindow"]; [o_extra_video_window setFrameAutosaveName:@"extra-videowindow"];
[o_detached_video_window setContentMinSize: NSMakeSize(f_min_video_height, f_min_video_height)]; [o_detached_video_window setContentMinSize: NSMakeSize(f_min_video_height, f_min_video_height)];
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment