Resize when entering a window, instead of a buffer

[fixes #3]