Fix Display.setParent() canvas position bug on OS X