Fix invalid surface dimensions when drawing widgets in a shrunken window.

When getting transparent surfaces to draw stuff onto, use a new function
in the glass module to get a transparent surface without getting an
error from using invalid (i.e. too small) dimensions.