Public bug reported:

Title: Alt+Tab handled by the compositor on 2nd/3rd windows of a multi-
screen VirtualBox VM when keyboard capture is active

Package: mutter (Ubuntu)
Ubuntu 26.04.1 LTS, GNOME 50, Wayland session
mutter / gnome-shell version: 50.1
VirtualBox 7.2.16 r174877, Windows 11 Pro guest, 3 virtual screens

What happens
With a multi-screen VirtualBox guest, Alt+Tab goes to the guest only when the 
first virtual screen's window has focus. With the second or third virtual 
screen's window focused, Alt+Tab is handled by GNOME and switches host windows 
instead of guest windows.

Expected
Alt+Tab should go to the guest from all three virtual screen windows, as it 
does from the first, whenever VirtualBox has captured the keyboard.

What has been checked
- VirtualBox's own status-bar indicator reports "keyboard captured" on all 
three screen windows.
- Identical behaviour whether VirtualBox runs under XWayland (default) or 
native Wayland (QT_QPA_PLATFORM=wayland).
- Keybindings otherwise stock: Alt+Tab is bound to switch-windows, Super+Tab to 
switch-applications.
- WaylandEnable=false is no longer set in /etc/gdm3/custom.conf. No xorg.conf, 
no QT_QPA/GDK_BACKEND overrides.
- Enabled extensions: ubuntu-dock, ubuntu-appindicators, tiling-assistant, 
ding, snapd and web-search providers (Ubuntu defaults).
- Three host monitors via a DisplayPort MST hub (probably irrelevant).

Workaround
Clearing the host binding fixes it:
  gsettings set org.gnome.desktop.wm.keybindings switch-windows "[]"
  gsettings set org.gnome.desktop.wm.keybindings switch-windows-backward "[]"
Alt+Tab then reaches the guest from all three screens.

Question
Is the shortcut-inhibit / XWayland keyboard-grab state tracked only for the 
first toplevel, or is it dropped when focus moves between windows of the same 
client? Happy to supply logs or test patches.

** Affects: mutter (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2178480

Title:
  Alt+Tab handled by the compositor on 2nd/3rd windows of a multi-screen
  VirtualBox VM when keyboard capture is active

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mutter/+bug/2178480/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to