summaryrefslogtreecommitdiffstats
path: root/libvo/vo_xover.c
diff options
context:
space:
mode:
Diffstat (limited to 'libvo/vo_xover.c')
-rw-r--r--libvo/vo_xover.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/libvo/vo_xover.c b/libvo/vo_xover.c
index 7cbd71360d..0a16696472 100644
--- a/libvo/vo_xover.c
+++ b/libvo/vo_xover.c
@@ -228,10 +228,8 @@ static int config(uint32_t width, uint32_t height, uint32_t d_width,
aspect_save_orig(width, height);
aspect_save_prescale(d_width, d_height);
- aspect_save_screenres(vo_screenwidth, vo_screenheight);
+ update_xinerama_info();
- vo_dx = 0;
- vo_dy = 0;
window_width = d_width;
window_height = d_height;
@@ -261,6 +259,8 @@ static int config(uint32_t width, uint32_t height, uint32_t d_width,
aspect(&d_width, &d_height, A_NOZOOM);
vo_dx=( vo_screenwidth - d_width ) / 2; vo_dy=( vo_screenheight - d_height ) / 2;
+ vo_dx += xinerama_x;
+ vo_dy += xinerama_y;
vo_dwidth=d_width; vo_dheight=d_height;
#ifdef HAVE_NEW_GUI
@@ -320,9 +320,6 @@ static int config(uint32_t width, uint32_t height, uint32_t d_width,
if ( flags&VOFLAG_FULLSCREEN ) vo_x11_fullscreen();
-#ifdef HAVE_XINERAMA
- vo_x11_xinerama_move(mDisplay, vo_window);
-#endif
} else if ( !(flags&VOFLAG_FULLSCREEN) ) XMoveResizeWindow( mDisplay,vo_window,vo_dx,vo_dy,vo_dwidth,vo_dheight );
}