Window actions (like maximize) no more work in wayland for QEMU using GTK backend once the guest UI is intialized.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gtk+3.0 (Ubuntu) |
New
|
Undecided
|
Unassigned | ||
qemu (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Window actions (like maximize) no more work in wayland for QEMU using GTK backend once the guest UI is intialized.
This can be seen by running an installed or even a trial Ubuntu from an ISO like:
$ qemu-system-x86_64 \
-boot d \
-cdrom ubuntu-
-m 4096M \
-machine type=q35,accel=kvm \
-cpu host \
-smp 2 \
-device qxl-vga
The GTK UI of qemu has a feature called "fullscreen" which disables the screen decorations and sets the window to maximize. The decorations go away, but maximize doesn't work.
The following details were found so far:
- running with GDK_BACKEND=x11 works
- using sdl instead of gtk backend works
- using the old qemu of Focal, or the newest from upstream git in jammy all fails (no qemu change AFAICS)
- host UI widgets (the square at the window top) do not work either
- hotkeys (super-up) do not work either
It seems that once the guest has enabled the desktop something changes and the maximize/
P.S. We can reproduce this in git builds of qemu, so we can debug of modify the code as needed. The code for this is mostly in [1]
[1]: https:/
--- original report ---
Running QEMU version 4.2.1 on Ubuntu 20.04 via
qemu-system-x86_64 \
-boot d \
-cdrom ubuntu-
-m 4096M \
-machine type=q35,accel=kvm \
-cpu host \
-smp 2 \
-device qxl-vga
and pressing ctrl+alt+f after booting the Ubuntu 22.04 live ISO and adjusting the display resolution to match the native resolution, works as expected, i.e., the VM screen is correctly displayed in fullscreen.
However, after running the same command for QEMU version 6.2.0 on Ubuntu 22.04 and pressing ctrl+alt+f after making the resolution adjustment, yields a fullscreen view where the space occupied by the GNOME top bar (top panel with date in center) of the host is not used. The top bar itself is not visible but instead the purple background is shown where the top bar resides.
The problem also occurs when replacing '-device qxl-vga' by '-device VGA,vgamem_mb=64'. The problem however does not occur when using '-device virtio-vga'.
description: | updated |
no longer affects: | wayland (Ubuntu) |
tags: | added: focal session wayland |
tags: |
added: wayland-session removed: session |
tags: | added: jammy |
Hello,
Thank you for the bug report. I attempted to reproduce the full screen issue but was unable to in Ubuntu 22.04. It's possible that the live ISO does not have all necessary drivers installed, causing this issue. Are you able to fully install 22.04 to test? Otherwise, can you share a screenshot of what this looks like?