Bug 1146998

Summary: After switching from full-screen using Shift-F11, arbitrary resolution doesn't work
Product: Red Hat Enterprise Linux 6 Reporter: Jonathon Jongsma <jjongsma>
Component: virt-viewerAssignee: Virt Viewer Maint <virt-viewer-maint>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: low Docs Contact:
Priority: unspecified    
Version: 6.6CC: cfergeau, dblechte, desktop-qa-list, dyuan, jjongsma, juzhou, marcandre.lureau, mbarta, mkrcmari, mzhan, pvine, rbalakri, tzheng, yeylon
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Windows   
Whiteboard:
Fixed In Version: virt-viewer-2.0-1.el6 Doc Type: Bug Fix
Doc Text:
Cause: After switching out from full screen using shift-f11, virt-viewer internal state wrt fullscreen and arbitrary resizing would get out of sync Consequence: arbitrary resolution would stop to work after getting out of full screen using shift+f11 Fix: the fullscreen/arbitrary resolution internal logic has been reworked/simplified Result: this bug no longer occurs
Story Points: ---
Clone Of: 1022608 Environment:
Last Closed: 2015-07-22 06:31:32 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: 1179477    
Bug Blocks:    

Description Jonathon Jongsma 2014-09-26 14:12:30 UTC
+++ This bug was initially created as a clone of Bug #1022608 +++

Description of problem:
After running virt-viewer from RHEVM User Portal in full-screen mode and switching to window mode using the Shift-F11 keyboard shortcut, the guest resolution can no longer be changed by resizing the remote-viewer window.

Version-Release number of selected component (if applicable):
RHEVM 3.3 is19
Client: Windows 7 32bit

mingw-virt-viewer-0.5.6-8.el6_4


How reproducible:
Always

Steps to Reproduce:
1. Set Open in Full Screen in Console options of VM
2. Open the console -> VM opens in full screen mode
3. Use Shift-F11 to switch to window mode

Actual results:
The guest resolution is not appropriately changed to match the window size. Further manual changes of the remote-viewer window are ignored as well.

Expected results:
Guest resolution changes to match the window dimensions.

Additional info:
Using the button at the top of the screen to exit from full screen mode works fine. The bug only occurs when keyboard shortcut Shift-F11 is used.

--- Additional comment from Marc-Andre Lureau on 2013-10-29 09:33:03 EDT ---

I can reproduce, but it doesn't always happen. If I leave fullscreen with the button once, then the keyboard shortcut works. Weird..

--- Additional comment from Marc-Andre Lureau on 2013-10-29 15:04:53 EDT ---

the bug is fixed in upstream, where the fullscreen/unfullscreen logic has been modified. I think we should wait for next rebase.

--- Additional comment from Jonathon Jongsma on 2014-05-30 18:02:13 EDT ---

rebase proposed for 3.5 (Bug 1103366)

--- Additional comment from errata-xmlrpc on 2014-07-25 10:06:46 EDT ---

Bug report changed to ON_QA status by Errata System.
A QE request has been submitted for advisory RHBA-2014:18370-01
https://errata.devel.redhat.com/advisory/18370

--- Additional comment from Marian Krcmarik on 2014-09-12 05:31:44 EDT ---

I still can reproduced the bug in following steps:

1. Set Open in Full Screen in Console options of VM
2. Open the console -> VM opens in full screen mode
3. Use Shift-F11 to switch to window mode -> resolution is adjusted.
4. Use Shift-F11 to switch to full-screen mode -> resolution is not adjusted.

It works properly when using virt-viewer full-screen button instead of keyboard shortcut.

--- Additional comment from Jonathon Jongsma on 2014-09-25 12:04:59 EDT ---

Posted a patch: https://www.redhat.com/archives/virt-tools-list/2014-September/msg00233.html

Comment 1 tingting zheng 2014-11-28 07:10:00 UTC
I can reproduce this bug with:
virt-viewer-0.6.0-11.el6.x86_64

Comment 2 Jonathon Jongsma 2015-02-09 16:42:03 UTC
Will be fixed by rebase to 2.0

Comment 4 zhoujunqin 2015-03-11 02:59:41 UTC
I can reproduce this issue with package:
virt-viewer-0.6.0-11.el6.x86_64

Steps to reproduce:
1. Set Open in Full Screen in Console options of VM
2. Open the console -> VM opens in full screen mode
3. Use Shift-F11 to switch to window mode -> resolution is adjusted.
4. Use Shift-F11 to switch to full-screen mode -> resolution is not adjusted.

Then try to verify with new package:
virt-viewer-2.0-2.el6.x86_64

Steps to verify:
1. Set Open in Full Screen in Console options of VM
2. Open the console -> VM opens in full screen mode
3. Use Shift-F11 to switch to window mode -> resolution is adjusted.
4. Use Shift-F11 to switch to full-screen mode -> resolution is adjusted.
5. Try step3&step4 several times, resolution is adjusted always.

So move this bug from ON_QA to VERIFIED.

Comment 5 zhoujunqin 2015-03-11 03:00:55 UTC
See Comment4.

Comment 7 errata-xmlrpc 2015-07-22 06:31:32 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2015-1322.html