Make `current-window-configuration' work as documented