Fixes #71: remember window size, position and sidepanel position