[Differential] [Changed Subscribers] D2945: Workaround xkbcommon behavior concerning consumed modifiers

luebking (Thomas Lübking) noreply at phabricator.kde.org
Thu Oct 6 10:46:47 UTC 2016


luebking added inline comments.

INLINE COMMENTS

> keyboard_input.cpp:420
> +    // handle this is through new API in xkbcommon which doesn't exist yet
> +    if (m_consumedModifiers & ~m_modifiers) {
> +        return mods;

Possible pitfalls:

What if eg. Ctrl+Alt+Foo creates a keysym, but Ctrl+Alt+Shift+Foo does not?

If however Ctrl+Alt+Foo and Ctrl+Alt+Shift+Foo create keysyms, Ctrl+Alt+Shift would be consumed but Ctrl+Alt should be considered consumed as well (so this test fails), right?

-> should one test for equality to rule out at least case one?

REPOSITORY
  rKWIN KWin

BRANCH
  consumed-mods-fix-5.8

REVISION DETAIL
  https://phabricator.kde.org/D2945

EMAIL PREFERENCES
  https://phabricator.kde.org/settings/panel/emailpreferences/

To: graesslin, #kwin, #plasma_on_wayland, sebas
Cc: luebking, plasma-devel, kwin, lesliezhai, ali-mohamed, hardening, jensreuterberg, abetts, sebas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20161006/4206d2a9/attachment.html>


More information about the Plasma-devel mailing list