On 12/06/2010 02:09 AM, Patrick Baggett wrote:
> I'm using Ubuntu 10.10 and testing out some examples using XI2. I don't
> appear to be getting all the raw messages I've selected however, and I
> can't explain why. I've attached a program that demonstrates my problem.
> I can only get the XI_RawMotion and XI_RawButtonPress events to show up
> when I perform various actions, but I was expecting to see the
> RawButtonRelease/RawKeyPress/RawKeyRelease as well. Is this a problem
> with the X server or my program?

>From the attachment:

        eventmask.deviceid = 2;

You seem to want all raw events from all devices. You should be using
XIAllDevices instead of a single device ID. You're likely only picking
up the "Virtual core pointer", which would explain why you're not
getting keypress events.

> Another issue that seems to happen is that when I click and drag, no
> motion events are reported. I'm not sure if that isn't intentional though.

You might be noticing implicit passive grabbing?

http://www.x.org/wiki/Development/Documentation/GrabProcessing

You might want to check out xinput. You can run "xinput test-xi2" to see
all the XI 2.0 events generated. The code is pretty simple too, so you
should be able to compare what it's doing to your own code.

-- Chase
_______________________________________________
xorg-devel@lists.x.org: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to