Thread (11 messages) 11 messages, 3 authors, 2007-10-26

Re: [PATCH] Input: Support for a less exclusive grab.

From: Zephaniah E. Hull <hidden>
Date: 2007-10-24 15:47:06
Also in: lkml

On Tue, Oct 23, 2007 at 11:33:08PM -0400, Dmitry Torokhov wrote:
On Tuesday 23 October 2007, Ryan Lortie wrote:
quoted
On Tue, 2007-23-10 at 14:10 -0400, Dmitry Torokhov wrote:
quoted
No, rfkill want to see keypresses, period. It does not care if there
are other applications also seeing the same keypresses, it just does
not want keypresses stolen from it.
Right.  This is exactly the problem.  The current grab API exists to
prevent keys from being delivered to normal users, but rfkill still
wants to see them.

No matter how you slice it, if both of these desires are to be satisfied
then there needs to be some sort of a system to differentiate between
rfkill and "normal users".  That's what the priority is here.
And the solution is pretty simple - do not use grab.
xf86-input-evdev will never open the console in raw mode and toss the
data, it's not going to happen.

We need a way to, at the absolute minimum, unbind the keyboard from the
text console.  The current solution sucks for things like rfkill.

I'm not convinced that Ryan's fix is any better, but just saying that X
should open the console and ignore the characters is simply not an
option as far as I am concerned for X.

Zephaniah E. Hull.
-- 
Dmitry
-- 
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help