SUMMARY "Allow legacy X11 apps to read keystrokes typed in all apps" stops working after a while of using Wayland applications, or when the session is locked and re-unlocked. When this happens, switching to any XWayland window and switching back usually fixes the issue temporarily, until it happens again. Also, `gamescope` refuses to start when this happens. Switching to any XWayland window and switching back also makes `gamescope` able to start again. STEPS TO REPRODUCE 1. System Settings -> Applications -> Legacy X11 App Support 2. Set "Allow legacy X11 apps to read keystrokes typed in all apps" to "All keys, but only while Meta, Ctrl, Alt, or Shift keys are pressed" or "Always" 3. Start a X11 application that can be activated using global shortcut 4. Minimize all XWayland windows 5. Use Wayland application for a while, or lock the session by pressing Meta + L and unlock OBSERVED RESULT X11 app can no longer be triggered by global shortcut. EXPECTED RESULT X11 app should be triggered by global shortcut even if you use Wayland application for a long time. When session is unlocked, X11 app should be able to be triggered by global shortcut again. SOFTWARE/OS VERSIONS Linux/KDE Plasma: KDE Plasma Version: 5.27.10 KDE Frameworks Version: 5.111.0 Qt Version: 5.15.11 Wayland session Fedora 39 ADDITIONAL INFORMATION
I could not reproduce an issue. Could you run xkbcat (an X key logger) in a terminal and try to reproduce your steps. Does that stop showing keys?
I didn't find a package for xkbcat, I used `xinput` instead. `xinput test` reads key inputs properly even when this issue occurs. However, when one of the KDE global shortcuts is pressed (Meta + L / Alt + Tab), the modifier key appears "stuck". Manually pressing that modifier or focus on any X11 window once fixes the problem temporarily, until the shortcut is pressed again which makes the modifier key stuck again. I think the underlying issue should be this: https://bugs.kde.org/show_bug.cgi?id=478705 And my X11 application (CopyQ) probably used key mask state to interpret shortcuts. (https://github.com/ValveSoftware/gamescope/issues/661 appears to also be related to the key mask issue) Since that bug uses more technical terms for description(Doesn't mention any user-facing issue like "X11 apps (appear to) no longer reacts to global shortcuts" makes it hard to search) and doesn't mention "Meta" can get stuck as well, only "Alt", I originally thought these were two separate issues.
Dear Bug Submitter, This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information. For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging If you have already provided the requested information, please mark the bug as REPORTED so that the KDE team knows that the bug is ready to be confirmed. Thank you for helping us make KDE software even better for everyone!
*** This bug has been marked as a duplicate of bug 478705 ***