[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Getting Monitors and Monitor Resolutions?
On Thu, 2002-01-17 at 10:26, Lawrence A. Rowe wrote:
>
> I can think of several things to look at. First, check out the xlib
> interface. It should have a call that gets info. I think the Tk winfo
> command in tk gets info from that source and from the Window Manager.
> If winfo doesn't have what you need, you can probably just define a
> Tcl-C proc binding to call the xlib function directly.
winfo seems to only return information for one monitor, what I assume to
be the root/main monitor. ag-vic also uses winfo to support a single
monitor if the DirectDraw command isn't supported.
> p.s. Also, remember that the DISPLAY variable is set on Unix. Does that
> carry the info you need about number of monitors?
Not that I know of. Does DISPLAY contain something like :0-1.0 or
something when there are multiple monitors? Do we even have a UNIX
machine that has multiple monitors attached somewhere? According to the
XFree86 documentation, multiple monitors are only supported via
multi-head on a few cards (Matrox) and via Xinerama. I'm looking through
the XFree86 API right now.
--
Wesley Miaw, Assistant Systems Administrator
Berkeley Multimedia Research Center
wesley@bmrc.berkeley.edu