In the code snippet below the "version" pointer value is compared against NULL when it should be compared against NoSuchExtension (defined as "1" and not "0" in XI.h). I'm using libXi 1.4.1 and xfce-settings 4.8.1 /* query the extension version */ version = XGetExtensionVersion (xdisplay, INAME); /* check for Xi */ printf("-->%p %d\n", version, version); if (version == NoSuchExtension || !version->present)
I just pushed a fix for this. This were a little bit complex: you need to check for NULL then you can cast to a long to compare to NoSuchExtension. Thanks for pointing this problem out.
You never pushed this I think, at least, I don't see the commit.
Yeah, thanks for spotting this. Just actually pushed.