[et-mgmt-tools] [PATCH]: Make virt-viewer ungrab the mouse and keyboard on un-focus

Chris Lalancette clalance at redhat.com
Sat Apr 19 01:18:35 UTC 2008


All,
     I ran into an unfortunate situation today with virt-viewer.  I was working
inside a virt-viewer window with the mouse and keyboard grabbed.  In the
meantime, a long running job that I had started earlier finished up, and fired
up another virt-viewer window (to a different guest).  Unfortunately, however,
my window manager decided to place that new virt-viewer window on top of the one
I was currently working in.  Once that happened, I couldn't give input to either
window, so I couldn't ungrab the old window or kill the new window.

The attached patch prevents this situation by doing a forced ungrab when we get
a focus-out-event from GTK.

Signed-off-by: Chris Lalancette <clalance at redhat.com>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: virt-viewer-focus-out.patch
Type: text/x-patch
Size: 1051 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/et-mgmt-tools/attachments/20080418/95af47af/attachment.bin>


More information about the et-mgmt-tools mailing list