Fix to work on wlroots>=0.17.1 by changing increasing order of serial
#664
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Fixes #663
Note
https://wayland.app/protocols/input-method-unstable-v2#zwp_input_method_v2:request:commit
다른 곳 치우고
ImEvent::Done
에서만serial
을 1씩 증가하게 바꾸니 일단은 작동하는 거 같습니다.wlroots/wlroots#4497을 읽어봤더니,
current_serial
은 0부터 시작해서wlr_input_method_v2_send_done
에서 1씩 올리고, 이렇게 예측한current_serial
이 받은serial
과 다르면 리셋을 해버리는 모양입니다. 다만 한 번 예측이 틀어지면current_serial
이 다시 0부터 시작해서 영원히 틀어지는 게 문제가 될 거 같긴 하네요 어떻게 그게 재현이 될 지는 아직 모르겠는데Checklist