X Tutup
The Wayback Machine - https://web.archive.org/web/20210106130936/https://github.com/python-xlib/python-xlib/issues/180
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

Where is XkbOpenDisplay? #180

Open
ianliu opened this issue Nov 5, 2020 · 2 comments
Open

Where is XkbOpenDisplay? #180

ianliu opened this issue Nov 5, 2020 · 2 comments

Comments

@ianliu
Copy link

@ianliu ianliu commented Nov 5, 2020

I'm trying to control keyboard layouts using the XKB extension, but I can't find any API for that. Is XKB implemented in this library? If not, is there any plans to support it?

Thanks!

@petli
Copy link
Contributor

@petli petli commented Nov 6, 2020

There is no support for the XKB extension now. You can find the list of available extensions here:
https://github.com/python-xlib/python-xlib/blob/master/Xlib/ext/__init__.py

This project is just being maintained with bug fixes, but PRs with support for additional extensions (or other features) are always welcome. If you want to have a stab at it yourself there's unfortunately no documentation on how to implement an extension, but you can have a look at some of the existing ones, e.g. https://github.com/python-xlib/python-xlib/blob/master/Xlib/ext/dpms.py

Extensions do not work in the same way as in the C Xlib, so there will not be an equivalent of XkbOpenDisplay. Instead methods are added to the Display and other X objects directly, once the display connection have been open and it's known which extensions the server supports.

@ianliu
Copy link
Author

@ianliu ianliu commented Nov 12, 2020

I will give it a shot by the end of this month, I'm a little overloaded right now :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.
X Tutup