https://bugs.kde.org/show_bug.cgi?id=466000
Bug ID: 466000 Summary: Failed to grab shortcuts on X Wayland when window was unmanaged Classification: Plasma Product: kwin Version: 5.27.0 Platform: Archlinux OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: wayland-generic Assignee: kwin-bugs-n...@kde.org Reporter: i...@jiahao.li Target Milestone: --- Created attachment 156435 --> https://bugs.kde.org/attachment.cgi?id=156435&action=edit X11 Unmanaged Window SUMMARY STEPS TO REPRODUCE 1. Open VMware workstation 17 on Kwin wayland. 2. Run Windows or Linux in VM. 2. Press shortcuts which combined with Win, Alt. OBSERVED RESULT The host task switcher grabed shortcuts first, the VM grabed it again. EXPECTED RESULT Keyboard grab should be inhibited in host. VM grab the shortcuts. SOFTWARE/OS VERSIONS Arch Linux 6.1.11 Linux/KDE Plasma: 5.27.0 KDE Plasma Version: 5.27.0 KDE Frameworks Version: 5.102.0 Qt Version: 5.15.8 ADDITIONAL INFORMATION Keyboard xwayland protocol didn't be added in kwin 5.26.5. So the shortcuts in vmware or freerdp(X11) can't be grabbed correctly. For kwin 5.27, the shortcuts feature was added, so freerdp (X11) can grab shortcuts correctly. https://invent.kde.org/lijiahao/kwin/-/blob/master/src/wayland/keyboard_shortcuts_inhibit_v1_interface.cpp However, the same issue existed in vmware. I think it may caused by the X11 unmanaged window. Xwayland can't handle the unmanaged key grab correctly? https://linux.die.net/man/3/xgrabkeyboard VMware workstation has two windows: GTK UI and VM virtual desktop. The GTK UI was managed by X11. But the VM window was unmanaged. -- You are receiving this mail because: You are watching all bug changes.