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>
This commit is contained in:
parent
0fe2e8c64e
commit
87b00ced3d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user