Another macro, save-selected-frame-window, would keep input from switching to another frame within its scope since this is not part of save-selected-window's behavior.