Bug#874526: Keyboard grab doesn't work under Wayland

Simon McVittie smcv at debian.org
Mon Jul 2 18:14:44 BST 2018


Control: retitle -1 Keyboard grab doesn't (always?) work under Wayland
Control: reopen -1
Control: tags -1 + moreinfo

On Mon, 02 Jul 2018 at 01:39:24 -0700, Josh Triplett wrote:
> On Mon, Jul 02, 2018 at 08:14:48AM +0100, Simon McVittie wrote:
> > This seems to work under GNOME 3.28 (probably also 3.26). I'm prompted
> > while starting up the VM for whether to allow gnome-boxes to grab the
> > keyboard. I haven't tried a Windows VM, but if I use the keyboard menu to
> > switch to a text-mode VT for a Linux VM with Ctrl+Alt+F$n, then either
> > press Ctrl+Alt+Del or send it via the keyboard menu, the VM reboots
> > as expected.
> 
> I can confirm that I can still reproduce this with current GNOME and
> gnome-boxes; Ctrl+Alt+Del still goes to GNOME and not to the VM.

Which versions of gnome-shell, libmutter-2-0, gnome-boxes do you have?

Are you prompted for whether to let gnome-boxes inhibit shortcuts? You
should get a system-modal dialog (the sort that dims the entire screen,
like the Shut Down dialog you get from Ctrl+Alt+Del itself) something
like this:

    |----------------------------------------------------------|
    |      Boxes wants to inhibit shortcuts                    |
    | /!\                                                      |
    |      You can restore shortcuts by pressing Super+Escape. |
    |                                                          |
    |--------[ Deny ]--------------------[ Allow ]-------------|

(If you don't click Allow then this feature is not expected to work.)

Does it help to click inside the virtual machine window before pressing
Ctrl+Alt+Del?

If you try using virt-manager instead of gnome-boxes (the same machines
should appear in both), does that work any better?

Does sending Ctrl+Alt+Del via the keyboard menu work?

Thanks,
    smcv



More information about the pkg-gnome-maintainers mailing list