Bug 207949

Summary: lost keystrokes on virtual machine console
Product: [Fedora] Fedora Reporter: Angus Thomas <athomas>
Component: virt-managerAssignee: Daniel Berrangé <berrange>
Status: CLOSED RAWHIDE QA Contact: Brian Brock <bbrock>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhide   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-09-27 15:49:26 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Angus Thomas 2006-09-25 15:21:37 UTC
Description of problem:
I have two X sessions running. Ctrl-Alt-F7 gives me the local gnome desktop.
Ctrl-Alt-F8 is another gnome desktop, exported from a woodcrest machine via
xdmcp. When switching between them, I find that the keyboard input to the
virt-manager's virtual machine console on the woodcrest breaks in various ways.
For example, it responds as if the Alt key was constantly pressed.

Version-Release number of selected component (if applicable):
virt-manager-0.2.2-1.fc6

How reproducible:
Always

Steps to Reproduce:
1.Run two concurrent X sessions
2.Use keyboard shortcuts to switch between them
3.
  
Actual results:
Keyboard input to the virtual machine console is knackered

Expected results:
keyboard input should work as it does on a normal terminal, for example

Additional info:

Comment 1 Daniel Berrangé 2006-09-25 15:27:01 UTC
We send VNC key events when getting  KeyPress/KeyRelease from X. So in this case
we're sending a KeyPress for the Alt & Ctrl keys, but since the final Fx key
switches to another local host console, the VNC server never gets sent the
KeyRelease events for Alt & Ctrl. So when switching back to the original host
console, the VNC server has Alt & Ctrl 'stuck' on. Looks like we need to 'reset'
key state when getting a LeaveNotify event


Comment 2 Daniel Berrangé 2006-09-27 15:49:26 UTC
This issue is fixed in virt-manager-0.2.3-1.fc6 which will appear in rawhide
within the next day.