We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
from Xlib import display from Xlib import X import time disp = display.Display() root = disp.screen().root root.change_attributes(event_mask=X.KeymapStateMask) while 1: a = disp.next_event() print(a) time.sleep(1)
This code is don't catch the event of KeymapNotify
The text was updated successfully, but these errors were encountered:
In my case it can't catch any event :(
Sorry, something went wrong.
I do get KeymapNotify events when I focus the root window. From the man page of XKeymapEvent(3):
generated on EnterWindow and FocusIn when KeymapState selected
It can be hard to move focus to the root window depending on your desktop environment.
No branches or pull requests
This code is don't catch the event of KeymapNotify
The text was updated successfully, but these errors were encountered: