Warning: evdev changes - no auto-grabs anymore
m.b.lankhorst at gmail.com
Thu Aug 14 14:03:21 PDT 2008
Daniel Stone schreef:
> On Thu, Aug 14, 2008 at 04:54:05PM +0200, Michel Dänzer wrote:
>> On Thu, 2008-08-14 at 14:13 +0930, Peter Hutterer wrote:
>>> Just a warning to all evdev users. I just pushed a fix to disable device grabs
>>> by default to evdev git (not X active/passive grabs, EVIOCGRAB ones).
>>> If you grab a device, you will stop it from sending events to /dev/input/mice,
>>> /dev/kbd, but breaks other (virtual) devices such as the Macintosh mouse
>>> button emulation and rfkill.
>> Sounds good, but unfortunately, this change seems to cause trouble of
>> its own, namely that hitting ctrl-C terminates the X server - not very
>> useful. :) It looks like all the input intended for the X server also
>> goes to a VT (I can briefly see fragments of what I typed before hitting
>> ctrl-C until the server restarts), and that's probably how the ctrl-C
>> results in a SIGTERM to the X server.
> Yep. Obvious and not even remotely tested patch:
Wouldn't that also block using kill? If I recall correctly SIGTERM is
also sent by kill and killall. I would rather have it grab the keyboard
as long as it has focus.
More information about the xorg