[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freedesktop-xorg
Subject:    Re: XInput2 raw events only for root window
From:       Peter Hutterer <peter.hutterer () who-t ! net>
Date:       2020-06-03 0:21:21
Message-ID: 20200603002121.GA2389372 () jelly
[Download RAW message or body]

On Fri, May 29, 2020 at 12:25:42AM -0500, Will Song wrote:
> Hey all. I am writing a small-ish application and when grabbing for keyboard
> events I noticed that it was not possible to select for raw key press/releasee
> events on the client window I created, and must be done on the screen root. Is
> this an intentional design in the xorg server or is it possible to do this
> generally in a non-root window? Thanks.

It's an intentional design, from the XI2proto.txt spec documents:
    RawEvents are sent exclusively to all root windows.

Raw events don't have any meaning otherwise since they're, well, raw events
from the device and the device doesn't know anything about windows, focus,
etc.

Cheers,
   Peter
_______________________________________________
xorg@lists.x.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: https://lists.x.org/mailman/listinfo/xorg
Your subscription address: %(user_address)s
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic