Patcher remembers window state.

Fixes #34