Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XUniqueContext binding #56

Closed
ColemanGariety opened this issue Jan 12, 2017 · 3 comments
Closed

XUniqueContext binding #56

ColemanGariety opened this issue Jan 12, 2017 · 3 comments

Comments

@ColemanGariety
Copy link

I'm trying to use XUniqueContext with this binding library (all good work).

I tried to add it myself to x11/xlib.rs but linking fails with undefined reference to XUniqueContext. I'm guessing that since this occurs at the linking stage, that XUniqueContext is not defined in libX11.so.

Why, I wonder? I'd really love to use it.

Thanks.

@ghost
Copy link

ghost commented Jan 12, 2017

I checked <X11/Xutil.h> for the reason. It looks like XUniqueContext is a macro which calls XrmUniqueQuark and casts the return value to XContext. So far I haven't included function macros in x11-rs, but I don't see any reason not to if it can avoid problems like these.

@ghost
Copy link

ghost commented Aug 13, 2017

Sorry I haven't responded in forever. I've started going back to college full time back in January, and I've been neglecting x11-rs. I can add this to the current version of the x11 crate, but not x11-dl, as it's not an exported symbol, but I'll keep this in mind when getting version 3 off the ground.

@ghost
Copy link

ghost commented Aug 13, 2017

Added in 2d92c08.

@ghost ghost closed this as completed Aug 13, 2017
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant