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

2018-09-16 Thread Jeremy Bicha
Control: severity -1 important

On Wed, Sep 6, 2017 at 6:03 PM Josh Triplett  wrote:
> [I don't know whether this bug lies in gnome-boxes or gnome-shell or
> some combination of both. Release-critical because this completely
> breaks the ability to log into many Windows VMs with gnome-boxes under
> the default GNOME Wayland session.]

I am downgrading the severity since there is a workaround in the
keyboard menu in the headerbar.

> The mechanism gnome-boxes uses to grab the keyboard doesn't work under
> the default GNOME Wayland session. This makes it impossible to send
> Ctrl-Alt-Delete; it always goes to gnome-shell instead.

I can't reproduce this bug. Boxes does correctly grab the keyboard and
tells me that it has in its headerbar.

If you look in the Boxes app menu, there is an item called Shortcuts.
If you click it, it tells you that the shortcut for keyboard grab is
Ctrl + L Alt.

I mean have you tried Ctrl + R Alt + Delete ?

If you can still reproduce, please provide a more detailed test case.
What guest OS are you using? How can you tell that Ctrl+Alt+Delete
isn't being sent to the guest?

Thanks,
Jeremy Bicha



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

2018-07-02 Thread Josh Triplett
On Mon, Jul 02, 2018 at 06:36:54PM +0100, Simon McVittie wrote:
> On Wed, 06 Sep 2017 at 14:58:37 -0700, Josh Triplett wrote:
> > (It might also help to add Ctrl-Alt-Delete to the list of shortcuts
> > provided in the gnome-boxes keyboard menu, alongside Ctrl-Alt-Backspace
> > and similar.)
> 
> This is now provided in the keyboard menu for both gnome-boxes and
> virt-manager.

I appreciate that, thank you. That will help heavily as a workaround.



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

2018-07-02 Thread Josh Triplett
On Mon, Jul 02, 2018 at 06:14:44PM +0100, Simon McVittie wrote:
> 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?

gnome-boxes 3.28.5-1
gnome-shell 3.28.2-1
libmutter-2-0:amd64 3.28.2-2

> 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.)

No, I don't get that prompt from gnome-boxes. (I've seen it before from
other applications.)

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

If I'm in windowed mode, yes.

As far as I can tell, it's possible to end up in a state in which the VM
has the focus but gnome-boxes doesn't have a grab on Ctrl+Alt+Del. This
can happen both in windowed mode and in fullscreen mode. In windowed
mode, if I click in gnome-boxes then a grab takes place and Ctrl+Alt+Del
works.

This may also have something to do with switching windows (via the
overview) away from a VM.

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

Yes.



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

2018-07-02 Thread Simon McVittie
On Wed, 06 Sep 2017 at 14:58:37 -0700, Josh Triplett wrote:
> (It might also help to add Ctrl-Alt-Delete to the list of shortcuts
> provided in the gnome-boxes keyboard menu, alongside Ctrl-Alt-Backspace
> and similar.)

This is now provided in the keyboard menu for both gnome-boxes and
virt-manager.

smcv



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

2018-07-02 Thread Simon McVittie
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



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

2017-10-20 Thread Michael Biebl
On Sat, 14 Oct 2017 15:12:34 -0400 Jeremy Bicha  wrote:
> On Wed, Sep 6, 2017 at 5:58 PM, Josh Triplett  wrote:
> > The mechanism gnome-boxes uses to grab the keyboard doesn't work under
> > the default GNOME Wayland session. This makes it impossible to send
> > Ctrl-Alt-Delete; it always goes to gnome-shell instead.
> 
> Please verify whether you can still reproduce this bug after updating
> to gnome-shell and gnome-control-center 3.26 which are now in Debian
> unstable.

Josh, can you please re-test with an up-to-date sid system.
According to a comment in the upstream bug tracker, this should be fixed.

-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?



signature.asc
Description: OpenPGP digital signature


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

2017-10-14 Thread Jeremy Bicha
On Wed, Sep 6, 2017 at 5:58 PM, Josh Triplett  wrote:
> The mechanism gnome-boxes uses to grab the keyboard doesn't work under
> the default GNOME Wayland session. This makes it impossible to send
> Ctrl-Alt-Delete; it always goes to gnome-shell instead.

Please verify whether you can still reproduce this bug after updating
to gnome-shell and gnome-control-center 3.26 which are now in Debian
unstable.

Thanks,
Jeremy Bicha



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

2017-09-06 Thread Josh Triplett
Package: gnome-boxes
Version: 3.25.91-1
Severity: serious

[I don't know whether this bug lies in gnome-boxes or gnome-shell or
some combination of both. Release-critical because this completely
breaks the ability to log into many Windows VMs with gnome-boxes under
the default GNOME Wayland session.]

The mechanism gnome-boxes uses to grab the keyboard doesn't work under
the default GNOME Wayland session. This makes it impossible to send
Ctrl-Alt-Delete; it always goes to gnome-shell instead.

(It might also help to add Ctrl-Alt-Delete to the list of shortcuts
provided in the gnome-boxes keyboard menu, alongside Ctrl-Alt-Backspace
and similar.)

-- System Information:
Debian Release: buster/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.12.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE=C.UTF-8 
(charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages gnome-boxes depends on:
ii  dconf-gsettings-backend [gsettings-backend]  0.26.0-2+b1
ii  libarchive13 3.2.2-2
ii  libc62.24-17
ii  libcairo-gobject21.14.10-1
ii  libcairo21.14.10-1
ii  libgdk-pixbuf2.0-0   2.36.5-4
ii  libglib2.0-0 2.53.6-1
ii  libgovirt2   0.3.4-2
ii  libgtk-3-0   3.22.19-1
ii  libgtk-vnc-2.0-0 0.7.1-1
ii  libgudev-1.0-0   232-1
ii  libosinfo-1.0-0  1.1.0-1
ii  libosinfo-bin1.1.0-1
ii  libpango-1.0-0   1.40.11-1
ii  libpangocairo-1.0-0  1.40.11-1
ii  librest-0.7-00.8.0-2
ii  libsecret-1-00.18.5-3.1
ii  libsoup2.4-1 2.59.90.1-1
ii  libspice-client-glib-2.0-8   0.34-1.1
ii  libspice-client-gtk-3.0-50.34-1.1
ii  libtracker-sparql-1.0-0  1.12.1-1
ii  libusb-1.0-0 2:1.0.21-2
ii  libvirt-daemon   3.6.0-1
ii  libvirt-glib-1.0-0   1.0.0-1
ii  libxml2  2.9.4+dfsg1-4
ii  mtools   4.0.18-2+b1
ii  tracker  1.12.1-1

Versions of packages gnome-boxes recommends:
ii  qemu-system-x86  1:2.8+dfsg-7

gnome-boxes suggests no packages.

-- no debconf information