size and window state are managed into settings