Bug 1312379 - [RFE] Spice: reimplement autoresize option in virt-viewer
Summary: [RFE] Spice: reimplement autoresize option in virt-viewer
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: mingw-virt-viewer
Version: 8.0
Hardware: x86_64
OS: All
medium
medium
Target Milestone: rc
: ---
Assignee: Martin Tessun
QA Contact: SPICE QE bug list
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-02-26 15:15 UTC by Tim Speetjens
Modified: 2020-04-15 14:24 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-05-02 22:10:41 UTC
Type: Feature Request
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 2180041 0 None None None 2017-01-27 15:35:28 UTC

Description Tim Speetjens 2016-02-26 15:15:35 UTC
In earlier versions of virt-viewer users had the choice of disabling autoresize. This option is useful when users want to work in windowed mode. At virt-viewer startup this is mostly respected, but when the client display is not large enough, the window is reduced in size, and still provokes a screen resize on the VM.

This behaviour is not always desired, and the autoresize option did mostly what was expected.

Users have started to use the previously available option, and now want to be able to continue using it.


Desired behaviour:
The autoresize is a user option, stored on the OS level, not tied to any VM, not tied to the RHEV manager.


With autoresize on:
At startup, the virt-viewer window gets the size of the display of the VM
When the client display is too small at startup, don't send resize instructions to VM, but fail back to autoresize=off, and scrollbars appear
When user resizes the window, size is sent to VM, which adjusts display settings
When user explicitely sets the display resolution inside the VM, autoresize should fall back to autoresize=off
When full screen is requested, adjust remote screen size to local screen size


With autoresize off:
Resizing the window never sends resize instructions to the VM.
When the VM display size is too large, display scrollbars on the client window
When the VM display size is smaller, ask if user wants to switch back to autoresize and resize VM display, or resize client window back to optimal size.
When full screen is requested, ask if user wants to switch back to autoresize, or scale the contents of the remote screen to match screen size


Basic idea is that, when 'autoresize=on' is set, the VM settings are respected. With 'autoresize=off' the VM settings are respected.
When virt-viewer is switched to full screen, it seems to be useful to scale the display (which may blurr the screen contents)

When the VM settings are set explicitely, we should honour this from the client. When this is set from the virt-viewer side, after confirmation only (as resizing a window is a lot more common operation) we do switch back to autoresize=on.

Comment 12 Sandro Bonazzola 2019-01-28 09:42:15 UTC
This bug has not been marked as blocker for oVirt 4.3.0.
Since we are releasing it tomorrow, January 29th, this bug has been re-targeted to 4.3.1.

Comment 14 Sandro Bonazzola 2019-03-26 10:14:45 UTC
4.3.1 has been release a while ago as RHV 4.3 Beta 2, re-targeting to 4.3.3 for re-evaluation


Note You need to log in before you can comment on or make changes to this bug.