Fix opening of display

Remember to pass in the display variable, otherwise we'll never connect to
it.