Small correction to previous commit
Save window position immediately when moved