1
mirror of https://github.com/mpv-player/mpv synced 2025-01-09 01:36:25 +01:00

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
This commit is contained in:
attila 2007-08-28 09:15:40 +00:00
parent fb7d88d344
commit 1cbb8209ca

View File

@ -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;