diff options
author | Jon TURNEY <jon.turney@dronecode.org.uk> | 2009-11-01 18:18:48 +0000 |
---|---|---|
committer | Jon TURNEY <jon.turney@dronecode.org.uk> | 2009-11-09 20:33:48 +0000 |
commit | 87b00ced3d308a9168828c0e38ecffa0640621a0 (patch) | |
tree | 3ea4e4c3676db16cbc66ec41c0932e5660e37cd5 /hw | |
parent | 0fe2e8c64e7a5a9140c77b88b266d7ae58b0bca2 (diff) |
Cygwin/X: Setup screen layout in Xinerama mode
Setup screen layout according to the screen window native window
positions in Xinerama mode
Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
Reviewed-by: Colin Harrison <colin.harrison@virgin.net>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/xwin/winscrinit.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/hw/xwin/winscrinit.c b/hw/xwin/winscrinit.c index 99d5a464e..37ec27e08 100644 --- a/hw/xwin/winscrinit.c +++ b/hw/xwin/winscrinit.c @@ -239,6 +239,16 @@ 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 + */ + dixScreenOrigins[index].x = pScreenInfo->dwInitialX - GetSystemMetrics(SM_XVIRTUALSCREEN); + dixScreenOrigins[index].y = pScreenInfo->dwInitialY - GetSystemMetrics(SM_YVIRTUALSCREEN); + + ErrorF("Screen %d added at XINERAMA coordinate (%d,%d).\n", + index, dixScreenOrigins[index].x, dixScreenOrigins[index].y); + #if CYGDEBUG || YES winDebug ("winScreenInit - returning\n"); #endif |