Introduce KXcbEvent to initialize the memory of sent XCB events
Something similar has been done a little more manually in KWin in plasma/kwin!1400 (merged). It may or may not make sense to use KXcbEvent there as well, and in any remaining places where XCB events are sent - it's surprising where that happens in some cases. For now, the corresponding header is private to KWindowSystem.
Edited by Andreas Hartmetz