Fix for bug 887. Use the right function to set the window position.