I'm after a 'window manager' that can help me load a single X application on top of an X session that can sense the size of the screen and render the window maximised.
If you try something like
startx /opt/openoffice4/program/soffice
from a linux console without a desktop manager set, you get an openoffice (whatever app) window that is a bit smaller than the screen and offset. Googling around suggests that you have to rely on each application to set its window size. startx /usr/bin/chromium --kiosk
will get you something close to what I'm after for all applications.As the other commenters have pointed out, the simplest and most robust thing might be to just resize all new windows to max and map them. Now you just have to make sure that only one window will be opened...
If you want to write it yourself in C using Xlib, you can use the 'XMoveResizeWindow' function. You could use 'XGetWindowAttributes' to get the size of the root window.
I'm just not sure if you need a window manager to handle the dialog windows. If you do, I would just use Blackbox.