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);