Thanks! I'll check that out.<div><br></div><div>Patrick<br><br><div class="gmail_quote">On Mon, Dec 6, 2010 at 1:48 PM, Chase Douglas <span dir="ltr"><<a href="mailto:chase.douglas@canonical.com">chase.douglas@canonical.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">On 12/06/2010 02:09 AM, Patrick Baggett wrote:<br>
> I'm using Ubuntu 10.10 and testing out some examples using XI2. I don't<br>
> appear to be getting all the raw messages I've selected however, and I<br>
> can't explain why. I've attached a program that demonstrates my problem.<br>
> I can only get the XI_RawMotion and XI_RawButtonPress events to show up<br>
> when I perform various actions, but I was expecting to see the<br>
> RawButtonRelease/RawKeyPress/RawKeyRelease as well. Is this a problem<br>
> with the X server or my program?<br>
<br>
</div>From the attachment:<br>
<br>
eventmask.deviceid = 2;<br>
<br>
You seem to want all raw events from all devices. You should be using<br>
XIAllDevices instead of a single device ID. You're likely only picking<br>
up the "Virtual core pointer", which would explain why you're not<br>
getting keypress events.<br>
<div class="im"><br>
> Another issue that seems to happen is that when I click and drag, no<br>
> motion events are reported. I'm not sure if that isn't intentional though.<br>
<br>
</div>You might be noticing implicit passive grabbing?<br>
<br>
<a href="http://www.x.org/wiki/Development/Documentation/GrabProcessing" target="_blank">http://www.x.org/wiki/Development/Documentation/GrabProcessing</a><br>
<br>
You might want to check out xinput. You can run "xinput test-xi2" to see<br>
all the XI 2.0 events generated. The code is pretty simple too, so you<br>
should be able to compare what it's doing to your own code.<br>
<font color="#888888"><br>
-- Chase<br>
</font></blockquote></div><br></div>