exclude programs from input device grabs

Patrick Sebastian Zimmermann patrick at zakweb.de
Sat Jan 10 09:23:24 PST 2009


I searched around a bit and found that my WM (awesome) already grabs
the root window and still becomes unresponsive with a menu clicked or a
game running. Could it be that the necessary parts for this to work
(is that part of mpx?) are not in xserver 1.3?
If this is the case, then basicly everything I wanted to achieve has
already be done.

Greetings,
Patrick

On Fri, 9 Jan 2009 10:08:09 +1000
Peter Hutterer <peter.hutterer at who-t.net> wrote:

> On Thu, Jan 08, 2009 at 10:48:48PM +0000, Patrick Sebastian
> Zimmermann wrote:
> > I want that a chosen application (in my case a hotkey daemon)
> > receives all input device events even when they are grabbed by other
> > applications. Even though I don't yet know the X internals, I guess
> > this is not done by simply grabbing all input devices. This would
> > allow any program to overhear passwords.
> 
> This is the wrong way to do it though. XEvIE has it's purpose, but
> this is not it. The correct solution to your problem is to simply
> grab the keys on the root window. If the key is already grabbed, then
> there's a change the desktop environment/WM already grabbed the key,
> so you should either pick a different shortcut, or integrate into the
> DE.
> 
>  On Thu, 08 Jan 2009 11:44:21 -0500
> > Thomas Jaeger <thjaeger at gmail.com> wrote:
> > 
> > > What is it exactly that you want to do?  If you just want to be
> > > notified of key presses, all you have to do is grab the key on all
> > > the extended input devices.  In xserver 1.6, if you also want
> > > applications not to receive the events,  you can change the core
> > > pointer mapping.  If I understood Peter correctly, come XI 2.0,
> > > this won't be necessary anymore since grabs will temporarily
> > > detach the slave device.
> > > 
> > > Tom
> > > 
> > > Patrick Sebastian Zimmermann wrote:
> > > > I searched around a bit.
> > > > Did I get it right, that mpx changed the entire input part of X
> > > > and therefor XEvIE didn't work anymore and was removed. mpx
> > > > does not provide anything like input redirection, so bringing
> > > > back XEvIE based on the new input logic mpx brings would not
> > > > result in implementing the same feature twice, right?
> > > > If this is the case I will try to bring XEvIE back.
> 
> sort-of, IIRC XEvIE was already quite broken before the mpx merge.
> mpx just kicked it again to make sure it's dead.
> 
> Cheers,
>   Peter
> _______________________________________________
> xorg mailing list
> xorg at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/xorg
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg/attachments/20090110/69ce5ef3/attachment.pgp>


More information about the xorg mailing list