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

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Dec 10 08:22:37 PST 2015


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

--- Comment #32 from Marc-Andre Lureau <marcandre.lureau at gmail.com> ---
(In reply to Zeeshan Ali from comment #30)
> (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 virt-viewer too

> 
> 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.

virt-manager doesn't have a good accelerator handling like virt-viewer.

> > > 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.

we are talking about virt-viewer, it's the spice client of reference.

> 
> > > 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.

No, it depends on widget input handling, see other focus handling of text/vte
widget etc

-- 
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/693f04d3/attachment.html>


More information about the spice-bugs mailing list