# HG changeset patch # User reimar # Date 1347393832 0 # Node ID ff4758e8cfbad8bc34a282fcbbc4bb34b448109f # Parent 90a2e4fedfab00cd75d8a3b9677bce0f7944b263 Change geometry for corevideo vo to not take dock into account. It makes the % placements behave non-intuitively, particularly with an auto-hide dock where it would depend on whether the dock is visible right when MPlayer starts up. diff -r 90a2e4fedfab -r ff4758e8cfba libvo/vo_corevideo.m --- a/libvo/vo_corevideo.m Tue Sep 11 19:39:10 2012 +0000 +++ b/libvo/vo_corevideo.m Tue Sep 11 20:03:52 2012 +0000 @@ -531,10 +531,13 @@ //config window [window setContentSize:NSMakeSize(vo_dwidth, vo_dheight)]; - // Use visibleFrame to position the window taking the menu bar and dock into account. + // Do not use visibleFrame - taking the menu bar and dock into account + // would be nicer in principle, but currently only results in the window + // being placed strangely off-center since vo_dx/vo_dy calculation is + // not aware of it. // Also flip vo_dy since the screen origin is in the bottom left on OSX. update_screen_info(); - visibleFrame = [screen_handle visibleFrame]; + visibleFrame = [screen_handle frame]; [window setFrameTopLeftPoint:NSMakePoint( visibleFrame.origin.x + vo_dx, visibleFrame.origin.y + visibleFrame.size.height - vo_dy)];