hw/xwin: Only set native positions if XINERAMA is enabled
Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk> Reviewed-by: Colin Harrison <colin.harrison@virgin.net>
This commit is contained in:
parent
23e07d71b6
commit
55a84be085
|
@ -216,15 +216,19 @@ winScreenInit(ScreenPtr pScreen, int argc, char **argv)
|
|||
else
|
||||
winErrorFVerb(2, "winScreenInit - Using software cursor\n");
|
||||
|
||||
/*
|
||||
Note the screen origin in a normalized coordinate space where (0,0) is at the top left
|
||||
of the native virtual desktop area
|
||||
*/
|
||||
pScreen->x = pScreenInfo->dwInitialX - GetSystemMetrics(SM_XVIRTUALSCREEN);
|
||||
pScreen->y = pScreenInfo->dwInitialY - GetSystemMetrics(SM_YVIRTUALSCREEN);
|
||||
if (!noPanoramiXExtension) {
|
||||
/*
|
||||
Note the screen origin in a normalized coordinate space where (0,0) is at the top left
|
||||
of the native virtual desktop area
|
||||
*/
|
||||
pScreen->x =
|
||||
pScreenInfo->dwInitialX - GetSystemMetrics(SM_XVIRTUALSCREEN);
|
||||
pScreen->y =
|
||||
pScreenInfo->dwInitialY - GetSystemMetrics(SM_YVIRTUALSCREEN);
|
||||
|
||||
ErrorF("Screen %d added at virtual desktop coordinate (%d,%d).\n",
|
||||
pScreen->myNum, pScreen->x, pScreen->y);
|
||||
ErrorF("Screen %d added at virtual desktop coordinate (%d,%d).\n",
|
||||
pScreen->myNum, pScreen->x, pScreen->y);
|
||||
}
|
||||
|
||||
#if CYGDEBUG || YES
|
||||
winDebug("winScreenInit - returning\n");
|
||||
|
|
Loading…
Reference in New Issue
Block a user