We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 33c819e commit fe9e73aCopy full SHA for fe9e73a
Xlib/protocol/display.py
@@ -801,7 +801,10 @@ def parse_event_response(self, etype):
801
# Decrement it by one, so that we don't remove the request
802
# that generated these events, if there is such a one.
803
# Bug reported by Ilpo Nyyssönen
804
- self.get_waiting_request((e.sequence_number - 1) % 65536)
+ # Note: not all events have a sequence_number field!
805
+ # (e.g. KeymapNotify).
806
+ if hasattr(e, 'sequence_number'):
807
+ self.get_waiting_request((e.sequence_number - 1) % 65536)
808
809
# print 'recv Event:', e
810
0 commit comments