
On Fri, Aug 17, 2007 at 08:08:23PM -0500, Alec Berryman wrote:
(please ignore previous patch - I forgot to update the README)
The attached patch allows the user to override Xinerama detection. I have the Xinerama headers installed because Debian's GTK+ development packages require it, but I only have one screen; for some reason, probably related to the laptop's VGA out, xmonad thinks there's a second one and I lose a workspace. The attached patch allows the user to pass the --without-xinerama to configure to manually disable xinerama.
I believe you should investigate your X installation, since your patch should not be needed. XMonad uses getScreenInfo to see whether it's running in a Xinerama environment or not. getScreenInfo is a (very safe) wrapper around XineramaQueryScreens. In the man page (man XineramaQueryScreens) I can read that "XineramaQueryScreens() returns NULL and sets number to 0 if Xinerama is not active." In other word there are strong reasons to suppose that the problem is not on the XMonad side, but on yours. And, obviously, I don't think XMonad should be written with malfunctioning X servers in mind...;-) Just my 2 cents (I don't use Xinerama). Andrea