https://bugs.kde.org/show_bug.cgi?id=491315

fanzhuyi...@gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
      Latest Commit|                            |https://invent.kde.org/plas
                   |                            |ma/kglobalacceld/-/commit/d
                   |                            |5be3e16b9e2921c88cc8e0181a5
                   |                            |b1f2c13ad761
             Status|ASSIGNED                    |RESOLVED

--- Comment #5 from fanzhuyi...@gmail.com ---
Git commit d5be3e16b9e2921c88cc8e0181a5b1f2c13ad761 by Yifan Zhu.
Committed on 09/08/2024 at 01:50.
Pushed by fanzhuyifan into branch 'master'.

plugins/xcb: skip xrecord events when keyboard is grabbed

Otherwise modifier-only shortcuts still trigger when keyboard is grabbed
by some other client, e.g. during shortcut assignment and in lockscreen.

Keep track of keyboard grab state by listening to grab/ungrab requests.

Test plan 1:
- Under x11, in system settings, assign Meta to some shortcut.
- Assign meta to another shortcut
- Verify that the old shortcut does not trigger

Test plan 2:
- Under x11, choose multiple keyboard layouts
- assign Alt+Shift as alternate layout switching shortcut
- lock screen
- press Alt+Shift
- Verify that the layout change OSD pops up, and typed password uses the
  new layout
- repeat the last two steps
Related: bug 488268

M  +16   -0    src/plugins/xcb/kglobalaccel_x11.cpp
M  +1    -0    src/plugins/xcb/kglobalaccel_x11.h

https://invent.kde.org/plasma/kglobalacceld/-/commit/d5be3e16b9e2921c88cc8e0181a5b1f2c13ad761

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to