From d21e6cf5584a2b93ea9175ae94b4855126e6904b Mon Sep 17 00:00:00 2001 From: Alexander Volkov Date: Mon, 17 Aug 2015 16:20:37 +0300 Subject: [PATCH] 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 --- src/plugins/platforms/xcb/qxcbscreen.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/plugins/platforms/xcb/qxcbscreen.cpp b/src/plugins/platforms/xcb/qxcbscreen.cpp index c6e48dc8c45..82cd1b86c93 100644 --- a/src/plugins/platforms/xcb/qxcbscreen.cpp +++ b/src/plugins/platforms/xcb/qxcbscreen.cpp @@ -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()) {