Bug 924577

Summary: Mouse clicking doesn't work on Save Screenshot dialog after open it by Alt+S+P.
Product: Red Hat Enterprise Linux 6 Reporter: hyao <hyao>
Component: virt-viewerAssignee: Marc-Andre Lureau <marcandre.lureau>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.4CC: acathrow, cfergeau, codong, cwei, dallan, dblechte, lcui, lnovich, marcandre.lureau, mjenner, mzhan, tzheng
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: virt-viewer-0.5.6-1.el6 Doc Type: Bug Fix
Doc Text:
Cause: Press Alt+S (or other menu accelerators). Consequence: The guest keep Alt state pressed, and some guest functionality may not work correctly. Fix: Releasing the guest keys when the keyboard grab is taken in client UI. Result: Avoid sticky modifiers keys in the guest when using Gtk menu accelerators, or when loosing the grab.
Story Points: ---
Clone Of:
: 924582 (view as bug list) Environment:
Last Closed: 2013-11-21 08:08:40 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: 924582    
Attachments:
Description Flags
debug file none

Description hyao@redhat.com 2013-03-22 06:28:57 UTC
Created attachment 714321 [details]
debug file

Description of problem:
Mouse clicking doesn't work on Save Screenshot dialog after open it by Alt+S+P.

Version-Release number of selected component (if applicable):
virt-viewer-0.5.2-18.el6_4.2
spice-server-0.12.0-12.el6.x86_64
spice-vdagent-0.12.0-4.el6_4.1
libvirt-0.10.2-18.el6_4.2
kernel-2.6.32-358.2.1.el6.x86_64
qemu-kvm-0.12.1.2-2.356.el6_4.2

How reproducible:
100%

Steps to Reproduce:
There is running guest on the host.
#virsh list --all
      Id Name State
      ----------------------------------------------------
      13 rhel63 running

1.Guest is opened via virt-viewer.
#virt-viewer rhel63

2.Press Alt+S on the key board.
Send key menu is open

3. Press P to PrintScreen.
Save Screenshot dialog opens in the guest. Use the mouse to click Save button

Actual result:
Nothing happen and can't save the screenshot.
PS. Mouse clicking on the opened Screenshot dialog doesn't work on other buttons, Help Copy to Clipboard, Cancel, Save and Close Window.

Expected result:
The screen shot is saved on the guest desktop.

Additional info:

Comment 1 Marc-Andre Lureau 2013-05-08 16:05:01 UTC
the problem is that while accessing the menu via keyboad, the Alt key is pressed, so the guest receives alt+print and doesn't do what you want. And worse, the Alt key stay pressed, so further mouse interactions will be affected (will move windows, like if you do alt+drag etc.)

Comment 2 Marc-Andre Lureau 2013-05-09 13:26:57 UTC
sent proposed fix to ML:
http://lists.freedesktop.org/archives/spice-devel/2013-May/013351.html

Comment 8 CongDong 2013-07-05 09:21:37 UTC
I can reproduce this bug:
Version:
virt-viewer-0.5.2-18.el6_4.2
spice-gtk-0.14-7.el6.x86_64

Steps:
1.Guest is opened via virt-viewer.
#virt-viewer $guest

2.Press Alt+S on the key board.
Send key menu is open

3. Press P to PrintScreen.
Save Screenshot dialog opens in the guest. Use the mouse to click Save button

Result:
Nothing happen and can't save the screenshot.

Verify:
Version:
virt-viewer-0.5.6-1.el6
spice-gtk-0.20-2.el6.x86_64

Setps:
As the steps above

Result:
After send key , ervery button can work well

Comment 9 errata-xmlrpc 2013-11-21 08:08:40 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.

http://rhn.redhat.com/errata/RHBA-2013-1578.html