I've recently reinstalled my workstation with Fedora 27, and since doing so, virt-manager has been doing one strange thing.
Every time I open a VM console and then move the mouse into the window, a dialog appears asking me:
Virtual Machine Manager wants to inhibit shortcuts
You can restore shortcuts by pressing Super+Escape.
It doesn't seem to matter whether I click Deny or Allow. In either case, pressing keys such as Ctrl+W are handled by virt-manager, rather than sent to the VM. In that case, for example, instead of deleting a word on the line I'm editing, the window closes.
Before reinstalling my machine, which was also on Fedora 27, I never saw this dialog box.
The only change I can recall making with respect to virt-manager is to add a PolicyKit rule to allow my user to manage system virtual machines without a password:
# cat /etc/polkit-1/rules.d/51-org.libvirt.unix.manage.rules polkit.addRule(function(action, subject) { if (action.id == "org.libvirt.unix.manage" && subject.user == "error") { return polkit.Result.YES; polkit.log("action=" + action); polkit.log("subject=" + subject); } }); These are the package versions I have now:
# rpm -q libvirt-daemon virt-manager libvirt-daemon-3.7.0-3.fc27.x86_64 virt-manager-1.4.3-2.fc27.noarch The other difference is that now I am on Wayland, whereas before I was using X. When I log in with "Gnome on Xorg", the problem goes away.
How do I prevent this useless dialog from appearing under Wayland, and have command keys such as Ctrl+W be sent to the VM rather than processed by virt-manager?
