I had this problem and fixed it by displaying offscreen then doing setPosition after ~100msec. Maybe a shorter delay could work too. Worked on windows, have not tried mac yet. Create the window with x=-20000, or calculate based on screens. Then just bw.setPosition(actualX, y).