From ef1e22f517af7dce1a280e69e0d1ba0fbe20283c Mon Sep 17 00:00:00 2001 From: Volker Krause Date: Thu, 10 Mar 2022 19:03:59 +0100 Subject: [PATCH] Adapt to Qt6 nativeEventFilter changes --- src/xwl/xwayland.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/xwl/xwayland.cpp b/src/xwl/xwayland.cpp index b2edc1a981..93245ac70f 100644 --- a/src/xwl/xwayland.cpp +++ b/src/xwl/xwayland.cpp @@ -303,7 +303,11 @@ void Xwayland::dispatchEvents() } while (xcb_generic_event_t *event = xcb_poll_for_event(connection)) { +#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) long result = 0; +#else + qintptr result = 0; +#endif QAbstractEventDispatcher *dispatcher = QCoreApplication::eventDispatcher(); dispatcher->filterNativeEvent(QByteArrayLiteral("xcb_generic_event_t"), event, &result); free(event);