Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754910AbXJXB6n (ORCPT ); Tue, 23 Oct 2007 21:58:43 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753310AbXJXB6g (ORCPT ); Tue, 23 Oct 2007 21:58:36 -0400 Received: from ns3.mountaincable.net ([24.215.0.13]:41665 "EHLO ns3.mountaincable.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753298AbXJXB6f (ORCPT ); Tue, 23 Oct 2007 21:58:35 -0400 Subject: Re: [PATCH] Input: Support for a less exclusive grab. From: Ryan Lortie To: Dmitry Torokhov Cc: "Zephaniah E. Hull" , linux-kernel@vger.kernel.org, Vojtech Pavlik , linux-input In-Reply-To: References: <20070609084800.GR6362@aehallh.com> <200706120120.00494.dtor@insightbb.com> <20070612052316.GX6362@aehallh.com> <200706120135.06428.dtor@insightbb.com> <20070612054031.GY6362@aehallh.com> <20070702152044.GA24665@suse.cz> <20070703164555.GA20370@aehallh.com> <1191035147.7025.28.camel@moonpix.desrt.ca> <1193155059.15426.15.camel@moonpix.desrt.ca> Content-Type: text/plain Date: Tue, 23 Oct 2007 21:58:14 -0400 Message-Id: <1193191094.32696.2.camel@moonpix.desrt.ca> Mime-Version: 1.0 X-Mailer: Evolution 2.10.1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1421 Lines: 30 On Tue, 2007-23-10 at 14:10 -0400, Dmitry Torokhov wrote: > 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. > Yes, applications need to decide whether they want to process certain > events or not. But I think that they shodul do it for themselves, not > for other applications. Otherwise dependencies are just insane and you > risk to disturb the peace just by adding another piece in the mix. I disagree. Dependencies aren't a problem at all if people merely rely on the kernel to take care of the appropriate filtering. Dependencies only become a problem when X needs to know about "ok... maybe I should ignore keys that are handled by [hal] [rfkill] [others] etc...". Cheers - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/