https://bugs.kde.org/show_bug.cgi?id=478705
Bug ID: 478705 Summary: Legacy X11 keyboard support does not receive key mask state update when Alt+tab is used Classification: Plasma Product: kwin Version: 5.90.0 Platform: Other OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: input Assignee: kwin-bugs-n...@kde.org Reporter: wen...@gmail.com Target Milestone: --- SUMMARY *** NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols. See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports *** STEPS TO REPRODUCE 1. Set "All" to X11 legacy app support under kwin wayland 2. start xinput test-xi2 --root 3. first press any key like "a", and see modifier line is "base 0". 4. make sure alt+tab is set for window switching, and the focused window is wayland window. 5. press alt + tab with alt being held. 6. release all key. 7. press "a" again OBSERVED RESULT After that, the any key pressed is with "modifier base 0x8", which means alt mask is set. Press alt again will make the state back to normal. EXPECTED RESULT modifier is return to "base 0" because alt is released. SOFTWARE/OS VERSIONS Linux/KDE Plasma: 5.90.0 (available in About System) KDE Plasma Version: 5.90.0 KDE Frameworks Version: 5.246.0 Qt Version: 6.6.1 ADDITIONAL INFORMATION I suspect that alt is not forwarded to xwayland at all since kwin captured it for alt+tab, and later xwayland's key state is kept in a wrong state until the next X window is focused. -- You are receiving this mail because: You are watching all bug changes.