fix window size for windows without content

Adjust window size even if no content is set for the window (fixes #336).
It looks like ws should be initially set to mDecorationsSize, shouldn't it?