Wrong dimensions.

I want window size not buffer size.