Bug ID 1140550
Summary VirtualBox guest steals keyboard input from host with "Auto Capture Keyboard" default enabled
Classification openSUSE
Product openSUSE Tumbleweed
Version Current
Hardware x86-64
OS openSUSE Factory
Status NEW
Severity Major
Priority P5 - None
Component Virtualization:Other
Assignee virt-bugs@suse.de
Reporter sb56637@gmail.com
QA Contact qa-bugs@suse.de
Found By ---
Blocker ---

Hi, I just started running into a major issue with VirtualBox guests since
Tumbleweed upgraded to Qt 5.13. (I usually wait a few weeks between updates,
which is why I just upgraded to the latest TW release yesterday.)

What happens is that the VirtualBox guest OS usually steals most keyboard input
from the host. This makes it basically unusable, even dangerous, because things
typed into the host usually do not appear on the host and instead get plastered
into whatever window has focus in the guest.

TO REPRODUCE:
1. Create a guest OS in VirtualBox, can be Windows or Linux, leave the default
"Auto Capture Keyboard" enabled.
2. Open a text editor on the guest OS
3. Switch to the host Tumbleweed OS and type a decent amount of text. Usually
all or most of the text will not appear on the host, but rather in the host OS
text editor.
4. If using Plasma, also try clicking the App Menu launcher button. It appears
for a fraction of a second and then disappears, because the guest is pulling
focus away at a low level (KWin rules to prevent focus stealing don't help.)

WORKAROUND:
- In the guest OS window, Ctrl+Home, Input > Keyboard > Keyboard Settings, and
disable "Auto Capture Keyboard". 
- So far it is working surprisingly seamlessly without this option, with things
like Alt+Tab still getting captured in the host OS. But this took me several
hours to diagnose, and "Auto Capture Keyboard" is the default option, so I
consider this to be a major bug.

I believe this is an incompatibility with some new change in Qt 5.13. I was
suspecting at first that it was something with Plasma and/or Kwin, but later I
tried it in a basic Openbox session and it behaved the same way. As mentioned
above, KWin rules to prevent focus stealing do not help. I also tried
downloading the kernel and virtualbox* packages to the versions in
http://ftp.opensuse.org/history/20190527/ which also didn't help. So the only
new component related to VirtualBox are the new Qt 5.13 libs.

I'm not sure if I should file this as a VirtualBox bug or a Qt bug, my
apologies in advance.


You are receiving this mail because: