Bug 1146997

Summary: After switching from full-screen using Shift-F11, arbitrary resolution doesn't work
Product: Red Hat Enterprise Linux 7 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: 7.1CC: cfergeau, codong, dblechte, desktop-qa-list, dyuan, fidencio, jjongsma, juzhou, marcandre.lureau, mbarta, mkrcmari, mzhan, pvine, rbalakri, tzheng, yeylon
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Windows   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Cause: Previously, the fullscreen floating toolbar the the "toggle-fullscreen" hotkey (which maps to the menu item action) had slightly different method of exiting fullscreen. The floating toolbar method unset the 'fullscreen' property on the application (which causes all windows to simultaneously exit fullscreen), whereas the hotkey did not. Consequence: This had a side-effect of preventing the display from auto re-sizing if it was fullscreened again. Fix: Both hotkey and the toolbar button will unset the application-level 'fullscreen' property when exiting fullscreen mode. Result: Same behavior when leaving the fullscreen using both hotkey and the toolbar button, exiting from fullscreen without affect the arbitrary resolution mode and letting the Guest resolution to match the windows dimensions.
Story Points: ---
Clone Of: 1022608 Environment:
Last Closed: 2015-03-05 13:39:56 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:

Description Jonathon Jongsma 2014-09-26 14:11:33 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 2 CongDong 2014-10-10 06:24:07 UTC
Can reproduce with virt-viewer-0.6.0-6.el7.x86_64

VERIFY with:
virt-viewer-0.6.0-7.el7.x86_64

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
4. Use Shift-F11 to switch to full-screen mode 

Result:
resolution is adjusted after step3 and step4

As the result, move this bug to VERIFIED.

Comment 4 errata-xmlrpc 2015-03-05 13:39:56 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-0295.html