Howto determine screen geometry?
Aaron Plattner
aplattner at nvidia.com
Mon May 23 12:42:54 PDT 2011
On Sun, May 22, 2011 at 09:20:31AM -0700, Stef Bon wrote:
> On 05/22/2011 04:23 PM, Mikhail Gusarov wrote:
> > Twas brillig at 16:19:49 22.05.2011 UTC+02 when stef at bononline.nl did gyre and gimble:
> >
> > SB> Isn't it possible to just get that information from the Xserver??
> >
> > xrandr + awk
> >
> Does not work, since randr and Xinerama do not combine.
Use the Xinerama extension:
xdpyinfo -ext XINERAMA
You can query similar information from a program using the functions in
libXinerama.
There's documentation in man pages for libXinerama:
http://cgit.freedesktop.org/xorg/lib/libXinerama/tree/man/Xinerama.man
("man Xinerama" if you have the man page installed)
Hope that helps!
-- Aaron
More information about the xorg-devel
mailing list