Howto determine screen geometry?
Stef Bon
stef at bononline.nl
Sun May 22 07:19:49 PDT 2011
Hi,
I'm working on a MultiSeat sollution, and has a video card with two
monitors connected.
Now my setup is simular to:
http://beforeafterx.blogspot.com/2011/02/multiseat-setup.html
Now as you can read here, on every screen there is a Xephyr running.
The location and the size of the window Xephyr is running on is set in a
configuration file.
Isn't it possible to just get that information from the Xserver??
like
xgetscreeninfo -display :0.0
and
xgetscreeninfo -display :0:1
which gives the position like
1920x1080+0+0
and
1920x1080+1920+0
This makes it very easy, since the configuration is not necessary at
all, it's redundant. The info is already present in the setup (xorg.conf
file) how the screens are configured. (size and position)
Stef
More information about the xorg-devel
mailing list