Fix restoring of transient windows.