Implemented the buffer for windows resizing
Merge pull request #374 from immae/winbuffers

Implemented the buffer for windows resizing