Skip to content

Commit c17ad41

Browse files
committed
protocol: fix handling of generic events
Make sure we start a new iteration of the parse_response loop upon handling a response, so the code does not try to parse left over received data based on the previous request type.
1 parent 74b5adc commit c17ad41

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎Xlib/protocol/display.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -651,8 +651,10 @@ def parse_response(self, request):
651651

652652
if rtype == 1:
653653
gotreq = self.parse_request_response(request) or gotreq
654+
continue
654655
elif rtype & 0x7f == ge.GenericEventCode:
655656
self.parse_event_response(rtype)
657+
continue
656658
else:
657659
raise AssertionError(rtype)
658660

0 commit comments

Comments
 (0)