save settings, fix WINDOWEDX/Y