Bug 924582

Summary: Mouse clicking doesn't work on Save Screenshot dialog after open it by Alt+S+P.
Product: Red Hat Enterprise Linux 7 Reporter: hyao <hyao>
Component: spice-gtkAssignee: Default Assignee for SPICE Bugs <rh-spice-bugs>
Status: CLOSED CURRENTRELEASE QA Contact: Desktop QE <desktop-qa-list>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.0CC: acathrow, cfergeau, codong, cwei, dblechte, lcui, marcandre.lureau, mjenner, mzhan, tzheng
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: spice-gtk-0.20-1.el7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 924577 Environment:
Last Closed: 2014-01-24 17:41:12 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: 924577    
Bug Blocks:    

Description hyao@redhat.com 2013-03-22 06:37:50 UTC
This bug also reproduce on Rhel7, clone the bug. 

Version-Release number of selected component (if applicable):
virt-viewer-0.5.4-2.el7.x86_64
spice-xpi-2.8-1.el7.x86_64
kernel-3.7.0-0.36.el7.x86_64
libvirt-1.0.3-1.el7.x86_64

+++ This bug was initially created as a clone of Bug #924577 +++

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-09 13:27:53 UTC
sent proposed fix to ML:
http://lists.freedesktop.org/archives/spice-devel/2013-May/013351.html

Comment 2 Christophe Fergeau 2014-01-24 17:41:12 UTC
This was a spice-gtk bug, but should no longer be happening with current RHEL7 spice-gtk, marking as CURRENTRELEASE

Comment 3 CongDong 2014-01-29 03:22:12 UTC
But I can reproduce this with:
# rpm -qa | grep spice
spice-vdagent-0.14.0-7.el7.x86_64
spice-glib-0.20-8.el7.x86_64
spice-gtk3-0.20-8.el7.x86_64
spice-xpi-2.8-5.el7.x86_64
spice-gtk-0.20-8.el7.x86_64
spice-server-0.12.4-4.el7.x86_64
#rpm -qa libvirt virt-viewer
virt-viewer-0.5.7-5.el7.x86_64
libvirt-1.1.1-20.el7.x86_64

Step:
1. start a guest and connect it with virt-viewer
# virsh start $vm
# virt-viewer $vm
2. Push  "Alt+s"
3. Push  "p"
4. screenshot dialog is open in the guest, click "save" button

Result:
Nothing happen and can't save the screenshot.
PS. Mouse clicking on the opened Screenshot dialog doesn't work on other buttons,.

As the result, the bug is not fixed yet.

Is there any wrong step above?

Comment 4 Christophe Fergeau 2014-01-29 10:52:37 UTC
(In reply to CongDong from comment #3)

> Step:
> 1. start a guest and connect it with virt-viewer
> # virsh start $vm
> # virt-viewer $vm
> 2. Push  "Alt+s"
> 3. Push  "p"
> 4. screenshot dialog is open in the guest, click "save" button
> 
> Result:
> Nothing happen and can't save the screenshot.
> PS. Mouse clicking on the opened Screenshot dialog doesn't work on other
> buttons,.

I'm confused by your results. You say nothing happen, then you talk about an opened Screenshot dialog, which would mean something happened.
I've just tried it with a RHEL7 client connecting to a RHEL6 guest and it's working as expected, "Alt+s" shows the 'send keys' menu, then 'p' sends printscreen to the guest. A screenshot dialog shows up in the guest, and I can use the mouse to cancel it, or get help. You have to make sure the mouse cursor is not in the guest, or the guest will catch the key presses, and the menu will not show up. What I do is I put the mouse cursor on the title bar of the remote-viewer window, and make sure the client is focused.
I've tested with virt-viewer 0.5.7-2 and spice-gtk3-0.20-6

Comment 5 CongDong 2014-02-11 08:17:53 UTC
(In reply to Christophe Fergeau from comment #4)
> (In reply to CongDong from comment #3)
> 
> I'm confused by your results. You say nothing happen, then you talk about an
> opened Screenshot dialog, which would mean something happened.
> I've just tried it with a RHEL7 client connecting to a RHEL6 guest and it's
> working as expected, "Alt+s" shows the 'send keys' menu, then 'p' sends
> printscreen to the guest. A screenshot dialog shows up in the guest, and I
> can use the mouse to cancel it, or get help. You have to make sure the mouse
> cursor is not in the guest, or the guest will catch the key presses, and the
> menu will not show up. What I do is I put the mouse cursor on the title bar
> of the remote-viewer window, and make sure the client is focused.
> I've tested with virt-viewer 0.5.7-2 and spice-gtk3-0.20-6

I tried again with the latest pkgs.
All passed (10/10).
Maybe something wrong with my environment last time.

As the result, it's fixed.