have you tried hitting Alt + Enter? (it’s a shortcut for switching between fullscreen)
i think they meant that redoing the shortcut won't undo it back to windowed