Not sure you need that with linux I think this functionality is handled by the desktop window manager/x11, I use dual monitors 1400x1050 and 1280x1024 and management seems transparent, no problems with fullscreen on one monitor or fullview where one window covers both monitors even with the different resolutions the window looks like it should, dragging windows between them is fine, fullscreen on one monitor adapts to the new monitor size.
is your code for a situation where the window manager gets kicked out and your proggy takes over the entire display and manages it's own windows?
Haven't tried multi display linux but on win7 it sure wouldn't work otherwise.
Life is much better now that oculus rendering goes full screen on that display w/o having to duplicate desktops, or worse (disable main desktop)