xcb: Don't update the geometry of a screen if XrandR is not available

QXcbScreen::updateGeometry() has a check for the presence of XRandR
extension. It doesn't make sense to call it when XRandR is not
available.

Change-Id: I44458a6001f147a7f3054bc87490cb3bd7aaf247
Reviewed-by: Shawn Rutledge <shawn.rutledge@theqtcompany.com>
This commit is contained in:
Alexander Volkov 2015-08-17 16:20:37 +03:00
parent 5a96e49145
commit d21e6cf558

View File

@ -104,8 +104,6 @@ QXcbScreen::QXcbScreen(QXcbConnection *connection, QXcbVirtualDesktop *virtualDe
updateRefreshRate(crtc->mode);
free(crtc);
}
} else {
updateGeometry(output ? output->timestamp : 0);
}
if (m_geometry.isEmpty()) {