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:
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
This issue is fixed in virt-manager-0.2.3-1.fc6 which will appear in rawhide within the next day.