Store QX11Info::display() and avoid repeated calls to the methods to workaround a bug in Qt.
(When called during the primary screen being destroyed(), QX11Info::display() will crash.)