summaryrefslogtreecommitdiff
path: root/src/x11extras/qx11info_x11.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/x11extras/qx11info_x11.cpp')
-rw-r--r--src/x11extras/qx11info_x11.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/x11extras/qx11info_x11.cpp b/src/x11extras/qx11info_x11.cpp
index ff972ac..7615657 100644
--- a/src/x11extras/qx11info_x11.cpp
+++ b/src/x11extras/qx11info_x11.cpp
@@ -49,7 +49,7 @@
#include <qpa/qplatformnativeinterface.h>
#include <qpa/qplatformwindow.h>
-#include <QtPlatformHeaders/qxcbscreenfunctions.h>
+#include <qpa/qplatformscreen_p.h>
#include <qscreen.h>
#include <qwindow.h>
#include <qguiapplication.h>
@@ -62,7 +62,8 @@ static QScreen *findScreenForVirtualDesktop(int virtualDesktopNumber)
{
const auto screens = QGuiApplication::screens();
for (QScreen *screen : screens) {
- if (QXcbScreenFunctions::virtualDesktopNumber(screen) == virtualDesktopNumber)
+ auto *qxcbScreen = dynamic_cast<QNativeInterface::Private::QXcbScreen *>(screen);
+ if (qxcbScreen->virtualDesktopNumber() == virtualDesktopNumber)
return screen;
}
return nullptr;