Relative positions of screens

Kai-Uwe Behrmann ku.b at gmx.de
Sun Oct 3 23:33:44 PDT 2010


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






More information about the xorg mailing list