Diffusion KWin 2cff5cb70a9e

[tabbox] Properly determine depressed modifiers on X11

Authored by zzag on May 21 2019, 11:41 AM.

Description

[tabbox] Properly determine depressed modifiers on X11

Summary:
A keysym can be assigned to several keycodes, so more proper way to
determine whether given modifier is depressed is to iterate over all
returned keycodes and see if any is pressed.

If we check only the first keycode, then alternative mappings may not
work, e.g. alt key mapped to win, etc.

BUG: 407720

Reviewers: KWin, davidedmundson

Reviewed By: KWin, davidedmundson

Subscribers: kwin

Tags: KWin

Differential Revision: https://phabricator.kde.org/D21302

Details

Committed
zzagMay 21 2019, 12:43 PM
Reviewer
KWin
Differential Revision
D21302: [tabbox] Properly determine depressed modifiers on X11
Parents
R108:f59f8ffcf7b0: Merge branch 'Plasma/5.16'
Branches
Unknown
Tags
Unknown