[pygtk] Detecting number of monitors/screens?

Nigel Tao nigel.tao.gnome at gmail.com
Wed May 24 13:29:04 WST 2006


> How do I find out how many heads X is using?

I think you need to query Xinerama rather than libwnck, and I don't
know if the former is wrapped in Pythony goodness.  At least, after
poking around libwnck for a fair bit (and looking at the metacity
source), I had to use Xinerama [1] for a recent C project of mine
(superswitcher): http://www.gnomefiles.org/app.php?soft_id=1231

You might also want to search the libwnck bugs in case other people
have asked for this before.

[1] Of course, I'd be happy to be proven wrong.  :-)


More information about the pygtk mailing list