Okay, most pieces are now working. I have two questions though. Is there an equivalent to Xlib's ScreenCount() function? Also, apparently the screen doesn't change until you do this (line 342 of xrandr.c): XRRUpdateConfiguration (&event). I looked at the code and I don't really know what it's doing except that somehow it's notifying xlib of an event. Jeremy