summaryrefslogtreecommitdiffstats
path: root/src/gui/configure.cmake
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@qt.io>2021-08-03 23:09:27 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2021-08-06 15:21:33 +0000
commit059b01b496e9e259aad6e6d8ae3da8488613b6b6 (patch)
treee3522aa3872cf56cca71df35674bec0a8627ab78 /src/gui/configure.cmake
parent9f443d98eb1f826b2b0c6719fd2fba26e53af191 (diff)
Add native interface for X11 application, exposing display and connection
The major use-case of the now private QX11Info from Qt X11 Extras was getting hold of the Xlib display and XCB connection, for example in KDE: https://lxr.kde.org/search?%21v=kf5-qt5&_filestring=&_string=QX11Info A new native interface for QGuiApplication has now been added that exposes these two properties, e.g.: if (auto *x11App = app.nativeInterface<QX11Application>()) qDebug() << x11App->display() << x11App->connection(); To avoid type clashes one of the enum values of QXcbNativeInterface's ResourceType had to be renamed. Task-number: QTBUG-93633 Change-Id: I2e366a2bb88bd3965ac6172ad000ae32209f43e7 Reviewed-by: Lars Knoll <lars.knoll@qt.io> (cherry picked from commit f5203eeada83bbe8e316a5188e24636af3e83b09) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'src/gui/configure.cmake')
-rw-r--r--src/gui/configure.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/configure.cmake b/src/gui/configure.cmake
index de05f5e0f1..ea6752806e 100644
--- a/src/gui/configure.cmake
+++ b/src/gui/configure.cmake
@@ -870,7 +870,7 @@ qt_feature("tuiotouch" PRIVATE
PURPOSE "Provides the TuioTouch input plugin."
CONDITION QT_FEATURE_network AND QT_FEATURE_udpsocket
)
-qt_feature("xcb" PRIVATE
+qt_feature("xcb" PUBLIC
SECTION "Platform plugins"
LABEL "XCB"
AUTODETECT NOT APPLE