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
Add support for XCB surfaces via xcffib #37
Conversation
Thanks for contributing! I’d like to see a few things before merging this, though:
|
It’s only at run-time that we should detect availability and fall back. I think Also, rather than having an entire class in a |
I have problems trying to run with this with the addition of
[1] http://cgit.freedesktop.org/cairo/commit/?id=5c0caa6f82374ec38a33d5f25a725f60bc121887 |
@flacjacket could you provide steps to reproduce this issue? |
Well, I get that trying to run a WIP version of qtile using cairocffi and xcbffi. The file in question causing the problem is here https://github.com/tych0/qtile/blob/cffi/libqtile/pangocffi.py |
Actually, I've worked out a more simple test case (tho it is not related to this PR, as doing this with travis, which has cairo 1.10.2, throws the same error but with many more undeclared values):
I don't know if this is a bug here, or a problem with using cffi, as the cairocffi docs has an example of doing simple pangocairo [1] and uses [1] https://pythonhosted.org/cairocffi/cffi_api.html#example-using-pango-through-cffi-with-cairocffi |
@flacjacket, this is unrelated to this PR, please open a separate issue. But, shortly: It is a very deliberate choice to use |
Going to close this in favor of #39. |
Hi, I'm in the process of rewriting xpyb, so xcffib is unreleased but nearing a 0.1 release. I'd be happy to tag something if it means that you'd be more comfortable merging this :-)