| Summary: | On x11, modifier-only global shortcuts incorrectly trigger even when keyboard is grabbed | ||
|---|---|---|---|
| Product: | [Applications] systemsettings | Reporter: | fanzhuyifan |
| Component: | kcm_keys | Assignee: | Plasma Bugs List <plasma-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | duha.bugs, fanzhuyifan, kde, kdedev, nate |
| Priority: | NOR | ||
| Version First Reported In: | master | ||
| Target Milestone: | --- | ||
| Platform: | Other | ||
| OS: | Linux | ||
| See Also: | https://bugs.kde.org/show_bug.cgi?id=488268 | ||
| Latest Commit: | https://invent.kde.org/plasma/kglobalacceld/-/commit/d5be3e16b9e2921c88cc8e0181a5b1f2c13ad761 | Version Fixed/Implemented In: | 6.2.0 |
| Sentry Crash Report: | |||
|
Description
fanzhuyifan
2024-08-05 17:16:18 UTC
I am unable to reproduce this. The way I tried this was: 1. Add CTRL shortcut to launch dolphin 2. Add CTRL shortcut to launch konsole When reassigning CTRL to konsole it did **not** open dolphin. Anything I am missing here? Operating System: Arch Linux KDE Plasma Version: 6.1.80 KDE Frameworks Version: 6.5.0 Qt Version: 6.9.0 Kernel Version: 6.10.2-arch1-1 (64-bit) Graphics Platform: Wayland (In reply to duha.bugs from comment #1) > I am unable to reproduce this. > > The way I tried this was: > 1. Add CTRL shortcut to launch dolphin > 2. Add CTRL shortcut to launch konsole > > When reassigning CTRL to konsole it did **not** open dolphin. > > Anything I am missing here? X11. Things work perfectly on wayland Ah, sorry I missed that. Can confirm on X11. A possibly relevant merge request was started @ https://invent.kde.org/plasma/kglobalacceld/-/merge_requests/60 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 |