[Bug 93249] key event going to display even with keyboard ungrabbed

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Dec 10 07:53:04 PST 2015


https://bugs.freedesktop.org/show_bug.cgi?id=93249

--- Comment #30 from Zeeshan Ali <zeenix at gmail.com> ---
(In reply to Marc-Andre Lureau from comment #29)
> (In reply to Zeeshan Ali from comment #27)
> > * What I'm asking for is keyboard-grab=false to work as expected. i-e No key
> > events sucked by spice display when keyboard in ungrabbed even if widget is
> > in focus. No, this is not a new state I'm asking for. It's what
> > keyboard-unpgrab is meant for and it partially works (for system keys).
> 
> keyboard-ungrab is generally for system grab (nothing else by default) 

Currently that might be but I presented arguments of why it should be for all
keys, above.

> > Now, as for it working in virt-viewer as expected, I do not see the expected
> > behaviour in virt-manager either. I tried:
> > 
> > 1. Ungrab kbd
> > 2. Hit Ctrl+q (nothing happened)
> 
> It's ctrl+shift+q,

That's for terminal.

> and you need to press ctrl+alt.

Yeah, I did, that is in fact Step#1 just above this step.

>From these two alone, I'm fairly sure you are talking about the opposite here:
Getting the system keys to guest. I'm expecting those shortcuts to work in
virt-manager UI rather than inside the guest. That's why every other step is to
ungrab the keyboard.

> > 3. Ungrab kbd again
> > 4. Hit Ctrl+w (nothing happened)
> > 5. Ungrab kbd again
> > 6. Hit Ctrl+w (nothing happened)
> 
> what's ctrl+w?

See File menu entry in virt-manager.

> > 9. Ungrab kbd again
> > 10. Tab to switch focus (focus remained on display and got a kbd bell from
> > terminal inside the guest demonstrating that key was received by guest)
> 
> there is no accelerator or handling of Tab or focus management in
> virt-viewer.

Of course not, Gtk+ will handle it if spice-gtk doesn't take the keys to the
guest.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/spice-bugs/attachments/20151210/685c0740/attachment.html>


More information about the spice-bugs mailing list