getWindowState