Bug 1396600

Summary: virt-viewer-1.4.0 always scales the guest window 2x when run from Gnome wayland session on HiDPI screen
Product: [Community] Virtualization Tools Reporter: anton.gubarkov <anton.gubarkov>
Component: virt-viewerAssignee: Daniel Berrangé <berrange>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: rbalakri, xen-maint
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-11-24 05:02:05 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:
Attachments:
Description Flags
screenshot of VM console none

Description anton.gubarkov@gmail.com 2016-11-18 18:00:34 UTC
Created attachment 1221927 [details]
screenshot of VM console

Description of problem:
I have a HiDPI screen (2880x1620) on my notebook. When I run Gnome on wayland, I have no control over the scaling of the virt-viewer. The VM window is always scaled 2x. I used to run my VMs pixel-to-pixel. 

Version-Release number of selected component (if applicable):


How reproducible: Always
 

Steps to Reproduce:
1.Run Gnome on wayland. 
2.Start the virt-manager and open the running vm in virt-viewer.
3.Observe the situation like in the attachment.


Actual results:
the VM screen is scaled 2x. Note the size of the screenshot (2880x1620) vs. the indicated resolution of the VM.

Expected results:
the VM screen scaling is controlled by the virt-viewer setting

Additional info:

Comment 1 anton.gubarkov@gmail.com 2016-11-18 18:04:24 UTC
When Gnome is run in X session, everything works fine.

Comment 2 anton.gubarkov@gmail.com 2016-11-24 05:02:05 UTC
upgrading to gtk+-3.22.4 fixes the issue with enourmous UI elements sizes on HiDPI display and also fixes the issue with 2x scaling of the graphical console.