Hello,
When I try to run a VMware virtual desktop, my keyboard shortcuts (such as alt+tab) are all intercepted by the host OS (Fedora 34 Workstation) rather than going to the virtual desktop. This only happens if I'm using Wayland on the host OS, and goes away if I switch to Xorg. Looking around on the web, I saw a hint that if I go to Gnome's Settings and look for VMware under Applications, there would be a switch I can flip to enable VMware to capture the keyboard shortcuts. There wasn't one. I also found a hint that adding the window's WM_CLASS to org.gnome.mutter.wayland xwayland-grab-access-rules might help, but it did not. Any other ideas on how I could get this to work? It's extremely inconvenient to use a virtual desktop when all my shortcuts go to the host. I'm very close to being able to use Wayland for everything, and it'd be nice to be able to knock down the last few obstacles before Gnome decides to deprecate running under Xorg.
-- Terveisin / Regards, Matti Pulkkinen
On 9/16/21 03:01, Matti Pulkkinen wrote:
When I try to run a VMware virtual desktop, my keyboard shortcuts (such as alt+tab) are all intercepted by the host OS (Fedora 34 Workstation) rather than going to the virtual desktop. This only happens if I'm using Wayland on the host OS, and goes away if I switch to Xorg. Looking around on the web, I saw a hint that if I go to Gnome's Settings and look for VMware under Applications, there would be a switch I can flip to enable VMware to capture the keyboard shortcuts. There wasn't one. I also found a hint that adding the window's WM_CLASS to org.gnome.mutter.wayland xwayland-grab-access-rules might help, but it did not. Any other ideas on how I could get this to work? It's extremely inconvenient to use a virtual desktop when all my shortcuts go to the host. I'm very close to being able to use Wayland for everything, and it'd be nice to be able to knock down the last few obstacles before Gnome decides to deprecate running under Xorg.
In Wayland, the application has to request access to have full keyboard capture. For non-native apps, it has to go through XWayland. I think you have the right key, but there's also a switch called "org.gnome.mutter.wayland xwayland-allow-grabs" that you probably have to turn on first.
to, 2021-09-16 kello 17:32 -0700, Samuel Sieb kirjoitti:
For non-native apps, it has to go through XWayland. I think you have the right key, but there's also a switch called "org.gnome.mutter.wayland xwayland-allow-grabs" that you probably have to turn on first.
This didn't quite fix the issue, but searching the web with that key I was able to find a workaround. If I hold down the super key, and then hit whatever key combination, those keys are then interpreted by the guest OS. No idea why, but it works. Thanks!