I am trying to create a Linux application - a screensaver, in this case - and it is proving remarkably difficult to find information on the simple task of making a wind
Try looking at this for an example:
Really Slick Screensavers Port to GLX http://rss-glx.sourceforge.net/
Look at the createWindow() function in driver.c.