Am 04.10.10, 12:28 +1000 schrieb Mark Dwyer:
I'm trying to draw large scenes on multi monitor setups. I can get all
screens and the resolutions of the screens via:
numberOfScreens = XScreenCount(dpy);
/* Work out the sizes of the screens */
for (int j = 0; j<numberOfScreens; j++)
{
Screen *screen = XScreenOfDisplay(dpy, j);
SIZE_X = DisplayWidth(dpy,j);
SIZE_Y = DisplayHeight(dpy, j);
printf("Width::%d\tHeight::%d\n", DisplayWidth(dpy,j),
DisplayHeight(dpy,j));
}
But how can I get where one screen is in relation to another?
Did you try configuring one big screen over all monitors and the Xinerama
API to get positioning? I guess XRandR works similiar these days if
available.
kind regards
Kai-Uwe Behrmann
--
developing for colour management
www.behrmann.name + www.oyranos.org
_______________________________________________
xorg@lists.freedesktop.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.freedesktop.org/mailman/listinfo/xorg
Your subscription address: arch...@mail-archive.com