fix window size for windows without content

(fixes #336)
take decoration size into account for initial size
Merge pull request #393 from sevoku/fix-336

fix window size for windows without content