https://bugs.kde.org/show_bug.cgi?id=454558

            Bug ID: 454558
           Summary: kwin detects wrong display size when qemu VM window is
                    resized
           Product: kwin
           Version: 5.24.90
          Platform: Other
                OS: Other
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: kwin-bugs-n...@kde.org
          Reporter: kishor...@gmail.com
  Target Milestone: ---

SUMMARY
When kwin is run inside a QEMU VM with spice display and the VM window is
resized, kwin resizes the display to the wrong size, resulting in an unusable
VM. This is on X11 (not sure what happens on wayland). This was working
correctly with kwin 5.24.5

STEPS TO REPRODUCE
1. Using virt-manager, create a qemu VM with graphics type="spice"
2. Install spice-vdagent in the guest
3. In the guest, create a file `~/.config/systemd/user/spice-vdagent.service`,
with the following content (this is required in case you are using systemd
startup for Plasma stuff. Otherwise, spice-vdagent should start automatically):
```
[Unit]
Description=Spice guest session agent
After=plasma-core.target

[Service]
ExecStart=/usr/bin/spice-vdagent -x

[Install]
WantedBy=plasma-core.target
```
4. In the guest, systemctl enable --user spice-vdagent
5. Reboot the guest
6. After logging into the plasma X11 session in the guest, resize the VM window

OBSERVED RESULTS
Display is in some other size/aspect ratio different from the VM window. This
is the behaviour with 5.24.90.

EXPECTED RESULTS
Display of the VM should be resized according to the VM window. This is the
behaviour with 5.24.5.

SOFTWARE VERSIONS (on guest)
Operating System: Arch Linux
KDE Plasma Version: 5.24.90
KDE Frameworks Version: 5.94.0
Qt Version: 5.15.4
Kernel Version: 5.15.43-1-lts (64-bit)
Graphics Platform: X11
Processors: 4 × AMD EPYC-Rome Processor
Memory: 1.4 GiB of RAM
Graphics Processor: virgl
Manufacturer: QEMU
Product Name: Standard PC (Q35 + ICH9, 2009)
System Version: pc-q35-5.1

ADDITIONAL INFORMATION
A. I have noticed the same issue in the KDE Neon (unstable) guest as well.
B. Downgrading kwin to 5.24.5 fixes the issue

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to