From 1cbb8209ca62b70d9f6b97f105bf4e3c35a2c197 Mon Sep 17 00:00:00 2001 From: attila Date: Tue, 28 Aug 2007 09:15:40 +0000 Subject: Assume first xinerama screen, in case xmga could never figure out on which screen it is. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24253 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/mga_common.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'libvo') diff --git a/libvo/mga_common.c b/libvo/mga_common.c index 7d9cd26f5d..2e6937c195 100644 --- a/libvo/mga_common.c +++ b/libvo/mga_common.c @@ -532,6 +532,15 @@ static void set_window( void ){ i = xinerama_screen; } + if(xinerama_screen == -1) + { + // The default value of the xinerama_screen is + // still there. Which means we could never + // figure out on which screen we are. + // Choose the first screen as default + xinerama_screen = i = 0; + } + /* set drwcX and drwcY to the right values */ drwcX = drwcX - screens[i].x_org; drwcY = drwcY - screens[i].y_org; -- cgit v1.2.3