finding how many screens i have
ik
idokan at gmail.com
Thu Dec 31 12:48:48 IST 2009
Erez,
You can write the following program:
for (int count = 1; count <= argc; count ++) {
Display *dpy;
int i;
dpy = XOpenDisplay(argv[count])
i = XScreenCount(dpy);
printf("You have %d screens\n", i);
XCloseDisplay(dpy);
}
Its a quick and dirty code from my memory (haven't tried it). that counts
for each given display string in the command line.
Ido
http://ik.homelinux.org/
On Thu, Dec 31, 2009 at 11:57 AM, Erez D <erez0001 at gmail.com> wrote:
> hi
>
> i have a computer with multiple display adapters, and each may have
> multiple X servers. each X server may have multiple screens.
>
>
>
> how can i get a list of all the screens i have ?
>
>
> thanks,
> erez.
>
> _______________________________________________
> Linux-il mailing list
> Linux-il at cs.huji.ac.il
> http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.cs.huji.ac.il/pipermail/linux-il/attachments/20091231/1083716a/attachment.html>
More information about the Linux-il
mailing list