Fixing bug 3048705 -- "fgOpenWindow should only return after the window opens". ...