Bug 454627 - virt-manager machine console loses focus with arrow key
virt-manager machine console loses focus with arrow key
Status: CLOSED NEXTRELEASE
Product: Fedora
Classification: Fedora
Component: gtk-vnc (Show other bugs)
9
x86_64 Linux
high Severity high
: ---
: ---
Assigned To: Daniel Berrange
Fedora Extras Quality Assurance
: Reopened
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2008-07-09 09:24 EDT by Tim Waugh
Modified: 2009-06-27 11:45 EDT (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2008-09-26 05:14:36 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Tim Waugh 2008-07-09 09:24:54 EDT
Description of problem:
The virtual machine console window does not fully grab keyboard input when the
mouse is over the vnc widget.  I have 'Grab keyboard input' set to 'On mouse over'.

Version-Release number of selected component (if applicable):
libvirt-0.4.4-1.fc9.x86_64
qemu-0.9.1-6.fc9.x86_64
gtk-vnc-python-0.3.6-1.fc9.x86_64
gtk-vnc-0.3.6-1.fc9.x86_64
gtk2-2.12.11-1.fc9.x86_64
gtk2-2.12.11-1.fc9.i386

How reproducible:
100%

Steps to Reproduce:
1.Double-click on activate virtual machine to see console.
2.Open a window on the virtual machine's console.  Keep mouse inside console.
3.Type into the window, anywhere, then press the 'Up' arrow key.
  
Actual results:
virt-manager's 'Shutdown' button now has focus.

Expected results:
Keyboard input still grabbed by vnc widget.

Additional info:
Worked fine until today.
Comment 1 Tim Waugh 2008-07-10 06:54:10 EDT
Downgrading gtk-vnc-python/gtk-vnc to 0.3.4-4.fc9 fixes it.
Comment 2 Daniel Berrange 2008-07-10 07:18:50 EDT
I believe this is caused by this changeset

changeset:   182:3b33ba158827
user:        Anthony Liguori <anthony@codemonkey.ws>
date:        Tue Mar 11 13:29:41 2008 -0500
files:       src/vncdisplay.c
description:
Propagate key press events.  This is needed for kvm-test.

This causes the key event to be forwarded onto the parent widget, and the
parent's parent & so on. Ultimately this gets processed by handler relating to
input focus, causing the shutdown button to get highlighted.
Comment 3 Daniel Berrange 2008-07-10 07:19:26 EDT
For reference

http://library.gnome.org/devel/gtk-tutorial/stable/x1812.html
Comment 4 Fedora Update System 2008-09-05 13:38:14 EDT
gtk-vnc-0.3.6-2.fc9 has been submitted as an update for Fedora 9.
http://admin.fedoraproject.org/updates/gtk-vnc-0.3.6-2.fc9
Comment 5 Torsten Rausche 2008-09-08 10:19:07 EDT
I just installed gtk-vnc-0.3.7-1.fc9.x86_64 from koji and can confirm that the focus doesn't switch to the console toolbar anymore when pressing the "tab" or "up" keys. BUT now the console window also doesn't release the mouse pointer when pressing "ctrl+alt"!
Comment 6 Fedora Update System 2008-09-11 13:06:42 EDT
gtk-vnc-0.3.7-1.fc9 has been pushed to the Fedora 9 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update gtk-vnc'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F9/FEDORA-2008-7907
Comment 7 Fedora Update System 2008-09-24 20:20:13 EDT
gtk-vnc-0.3.7-1.fc9 has been pushed to the Fedora 9 stable repository.  If problems still persist, please make note of it in this bug report.
Comment 8 Tim Waugh 2008-09-26 04:50:26 EDT
Comment #5 still applies to this:
> BUT now the console window also doesn't release the
> mouse pointer when pressing "ctrl+alt"!

This is a pretty critical FAIL.
Comment 9 Torsten Rausche 2008-09-26 05:07:08 EDT
(In reply to comment #8)
> Comment #5 still applies to this:
> > BUT now the console window also doesn't release the
> > mouse pointer when pressing "ctrl+alt"!
> 
> This is a pretty critical FAIL.

Yes, but it is fixed now. See bug 463729.
Comment 10 Daniel Berrange 2008-09-26 05:14:36 EDT
Please do *NOT* reopen bugs to report different problems. As Torsten says there is a separate bug tracking this problem & its resolution. It is completely unconnected to this existing bug.

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