<table><tr><td style="">davidedmundson added a comment.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D17415">View Revision</a></tr></table><br /><div><div><p>Seems to be an XCB bug.</p>

<p>We should have wrappers for both:</p>

<p>XkbNewKeyboardNotify, XkbMapNotify, etc.</p>

<p>and</p>

<p>XkbNewKeyboardNotifyMask, XkbMapNotifyMask, etc.</p>

<p>the latter being used for event selection masks.</p>

<p>That's what XKB.h from X11 has, and XCB normally copies that.</p>

<p>But you're right, XCB only has an enum with names from the first one and with the values from the second :/</p>

<hr class="remarkup-hr" />

<p>My rules for workarounds is we should have an upstream bug report submitted and a comment in the code.</p>

<p>There's a bug report already here: <a href="https://bugs.freedesktop.org/show_bug.cgi?id=51295" class="remarkup-link" target="_blank" rel="noreferrer">https://bugs.freedesktop.org/show_bug.cgi?id=51295</a></p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R119 Plasma Desktop</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D17415">https://phabricator.kde.org/D17415</a></div></div><br /><div><strong>To: </strong>amantia, Plasma, Plasma Accessibility, aacid<br /><strong>Cc: </strong>davidedmundson, plasma-devel, ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart<br /></div>