Adapt to Qt6 nativeEventFilter changes
This commit is contained in:
parent
c7b2c64967
commit
ef1e22f517
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue