Logged In: YES
Originator: NO

Is the "save as" window created by your code? If so, set the dialog type to modal can help.
For a modal window, it will grab the focus and the parent window (OOo window in this case) won't receive any event before the popup window (Save as window in this ase) closed.