Description of problem: When connecting to a qemu vm through spice the screen resolution isn't sent to the spice-vdagent deamon when the window is resized. Clipboard works as expected. Version-Release number of selected component (if applicable): Qemu 2.6 Virt-viewer 4.0 spice-vdagent 0.17.0 How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: spice-vdagent[575]: 0x1e07dc0 connected to /var/run/spice-vdagentd/spice-vdagent-sock spice-vdagent[575]: Selection window: 33554433 spice-vdagent[575]: Screen 0 1024x768+0+0 spice-vdagent[575]: 0x1e07dc0 sent guest xorg resolution, arg1: 1024, arg2: 768, size 16 spice-vdagent[575]: net_wm_name: "Xfwm4", has icons: 1 spice-vdagent[575]: 0x1e07dc0 received version, arg1: 0, arg2: 0, size 7 spice-vdagent[575]: 0x1e07dc0 received client disconnected, arg1: 0, arg2: 0, size 0 Expected results: I expect spice-vdagent to produce a log entry when window is resized. Additional info: qemu-flags: export QEMU_FLAGS="-vga qxl \ -spice port=5930,disable-ticketing \ -device virtio-serial-pci,id=virtio-serial0,max_ports=16,bus=pci.0,addr=0x5 \ -chardev spicevmc,name=vdagent,id=vdagent \ -device virtserialport,nr=1,bus=virtio-serial0.0,chardev=vdagent,name=com.redhat.spice.0"
Maybe this is related: ** (remote-viewer:20893): WARNING **: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-mv7zMXN5YD: Connection refused (remote-viewer:20893): Spice-WARNING **: channel-display-gst.c:303:create_pipeline: GStreamer error: no element "appsrc" (remote-viewer:20893): Spice-WARNING **: channel-display-gst.c:303:create_pipeline: GStreamer error: no element "appsrc" (remote-viewer:20893): Spice-WARNING **: channel-display-gst.c:303:create_pipeline: GStreamer error: no element "appsrc" (remote-viewer:20893): Gtk-WARNING **: Allocating size to SpiceDisplay 0xfa4470 without calling gtk_widget_get_preferred_width/height(). How does the code know the size to allocate?
Hi, It is not a bug, in the past agent handled resizing. But now it is handled by qxl (drm kernel driver), however it needs some support in window manager - currently implemented in GNOME (mutter). I don't know about support in other desktop environments.
Thank you for the information.
(In reply to David Craven from comment #1) > Maybe this is related: ... > (remote-viewer:20893): Gtk-WARNING **: Allocating size to SpiceDisplay > 0xfa4470 without calling gtk_widget_get_preferred_width/height(). How does > the code know the size to allocate? This one is a well-known old GTK bug. See bug 1488249.