Adapt to Qt6 nativeEventFilter changes

This commit is contained in:
Volker Krause 2022-03-10 19:03:59 +01:00 committed by Vlad Zahorodnii
parent c7b2c64967
commit ef1e22f517

View file

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