summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qwindow.cpp
diff options
context:
space:
mode:
authorDavid Redondo <qt@david-redondo.de>2023-12-06 14:39:55 +0100
committerDavid Redondo <qt@david-redondo.de>2023-12-07 23:04:59 +0100
commita2ff329d2eb893ffae0d1cd18dd76bd494781295 (patch)
treede023474c2be76a63891b30046006f6289101f1f /src/gui/kernel/qwindow.cpp
parent6866e6f2fa1cfa8f91a940936296d3ecb5317640 (diff)
Introduce a configure feature for Wayland
Using the presence of the wayland-client lib as a condition. Fixes: QTBUG-117386 Change-Id: If4336965ea06e3f4b06e9af661efdec38ba46136 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'src/gui/kernel/qwindow.cpp')
-rw-r--r--src/gui/kernel/qwindow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/kernel/qwindow.cpp b/src/gui/kernel/qwindow.cpp
index 9de6148046..57fe8fa287 100644
--- a/src/gui/kernel/qwindow.cpp
+++ b/src/gui/kernel/qwindow.cpp
@@ -3129,7 +3129,7 @@ void *QWindow::resolveInterface(const char *name, int revision) const
QT_NATIVE_INTERFACE_RETURN_IF(QCocoaWindow, platformWindow);
#endif
-#if defined(Q_OS_UNIX)
+#if QT_CONFIG(wayland)
QT_NATIVE_INTERFACE_RETURN_IF(QWaylandWindow, platformWindow);
#endif