Bug 1027999

Summary: virt-viewer can not change the resolution higher than physical size in windowed mode
Product: Red Hat Enterprise Linux 7 Reporter: tingting zheng <tzheng>
Component: virt-viewerAssignee: Virt Viewer Maint <virt-viewer-maint>
Status: CLOSED NOTABUG QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.0CC: acathrow, codong, dblechte, dyuan, lcui, marcandre.lureau, mzhan, zsong
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-07-06 22:31:29 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1113520    
Attachments:
Description Flags
Debug info of virt-viewer none

Description tingting zheng 2013-11-07 13:49:05 UTC
Created attachment 821141 [details]
Debug info of virt-viewer

Description
virt-viewer can not change the resolution higher than physical size in windowed mode

Version:
Host:
libvirt-1.1.1-11.el7.x86_64
virt-viewer-0.5.7-2.el7.x86_64
spice-gtk-0.20-6.el7.x86_64
spice-vdagent-0.14.0-5.el7.x86_64
spice-gtk3-0.20-6.el7.x86_64
spice-server-0.12.4-3.el7.x86_64
spice-glib-0.20-6.el7.x86_64

Guest:rhel6.5
spice-vdagent-0.14.0-2.el6.x86_64

How reproducible:
100%

Steps to Reproduce:
1.Prepare a spice guest,install spice-vdagent,start spice-vdagentd service.
2.# virt-viewer guest
3.Change the resolution from guest,it can change resolution lower than physical size,but fail to set as higher than physical size in windowed mode.
first resolution:1024*768
A.change resolution to 1280*720,failed,back to 1272*720.
B.change resolution to 1360*768,failed,back to 1272*768.
C.change resolution to 960*640,success.

Actual results:
As description.

Expected results:
virt-viewer can change the resolution higher than  physical size in windowed mode

Additional info:
1.The issue can not be reproduced on rhel6.
2.The issue can not be reproduced on full-screen.
3.Attached spice-debug info.

Comment 1 hyao@redhat.com 2013-11-21 06:22:47 UTC
I can reproduce the bug with the following packages:

On host:
# rpm -qa libvirt virt-viewer spice-gtk spice-vdagent spice-gtk3 spice-server spice-glib
virt-viewer-0.5.7-1.el7.x86_64
spice-glib-0.20-6.el7.x86_64
spice-vdagent-0.14.0-5.el7.x86_64
spice-gtk3-0.20-6.el7.x86_64
spice-gtk-0.20-6.el7.x86_64
spice-server-0.12.4-3.el7.x86_64
libvirt-1.1.1-12.el7.x86_64

On guest: rhel6.5
spice-vdagent-0.14.0-2.el6.x86_64

Comment 2 Marc-Andre Lureau 2014-07-06 22:31:29 UTC
This is by design, there is code in virt-viewer to resize the display to fit the native client resolution while keeping aspect-ratio in window mode.