diff options
author | Jon TURNEY <jon.turney@dronecode.org.uk> | 2012-03-03 20:13:19 +0000 |
---|---|---|
committer | Jon TURNEY <jon.turney@dronecode.org.uk> | 2012-04-01 00:46:18 +0100 |
commit | 972db6758ad10631e28bade033ec9ce916b3381f (patch) | |
tree | 01bf1dc3775aef163d91f8a87e8ba741527e83be | |
parent | 9d852345076dee578ebc757f6f83bbbe6d3e78f8 (diff) |
Only set native positions if XINERAMA is enabled
-rw-r--r-- | hw/xwin/winscrinit.c | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/hw/xwin/winscrinit.c b/hw/xwin/winscrinit.c index fa6838a78..77c6bf5a3 100644 --- a/hw/xwin/winscrinit.c +++ b/hw/xwin/winscrinit.c @@ -232,15 +232,18 @@ winScreenInit (int index, 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); - - ErrorF("Screen %d added at virtual desktop coordinate (%d,%d).\n", - index, pScreen->x, pScreen->y); + 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", + index, pScreen->x, pScreen->y); + } #if CYGDEBUG || YES winDebug ("winScreenInit - returning\n"); |