Adding support for window padding

Take two, free of xcode badness, much cleaner solution than the original.

Thoughts?