diff --git a/main_wayland.cpp b/main_wayland.cpp index d6f41a1b1f..8757d7fb63 100644 --- a/main_wayland.cpp +++ b/main_wayland.cpp @@ -184,6 +184,11 @@ void ApplicationWayland::continueStartupWithX() auto processXcbEvents = [this, c] { while (auto event = xcb_poll_for_event(c)) { updateX11Time(event); + long result = 0; + if (QThread::currentThread()->eventDispatcher()->filterNativeEvent(QByteArrayLiteral("xcb_generic_event_t"), event, &result)) { + free(event); + continue; + } if (Workspace::self()) { Workspace::self()->workspaceEvent(event); }