Currently, the most recent position of a window is saved only when hitting Escape, but not when closing windows with the [X] button or when using Backspace to close all unpinned windows. This patch makes it so that a window's position is always saved.
this is in r10822. Thanks you!