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

Fix message recursion between wayland compositor (#5360) #5369

Merged

Conversation

wengxt
Copy link
Contributor

@wengxt wengxt commented Aug 11, 2022

  1. Only update preedit if preedit changed.
  2. Only send cursor update if cursor position is not changed.

1. Only update preedit if preedit changed.
2. Only send cursor update if cursor position is not changed.
@kovidgoyal
Copy link
Owner

I dont follow the need for this. kitty already doesnt send anything in response to done events.

@wengxt
Copy link
Contributor Author

wengxt commented Aug 12, 2022

I dont follow the need for this. kitty already doesnt send anything in response to done events.

the reason is that it’s triggered by preedit update when preedit is same. not explicitly reply anything to done.

@kovidgoyal kovidgoyal force-pushed the master branch 2 times, most recently from f5a18f5 to 2bb42e6 Compare August 19, 2022 08:22
@kovidgoyal
Copy link
Owner

kovidgoyal commented Oct 11, 2022 via email

@wengxt
Copy link
Contributor Author

wengxt commented Oct 18, 2022

On Thu, Aug 11, 2022 at 06:52:57PM -0700, Weng Xuetian wrote: > I dont follow the need for this. kitty already doesnt send anything in response to done events. the reason is that it’s triggered by preedit update when preedit is same. not explicitly reply anything to done.
But does that actually cause an infinite recursion? And if so, why? And why does it not show up under mutter?

Sorry, but I can easily reproduce it under mutter. You need to use an input method that has preedit.

@wengxt
Copy link
Contributor Author

wengxt commented Oct 18, 2022

Upload a video as proof.

1.mp4

@kovidgoyal
Copy link
Owner

On Thu, Aug 11, 2022 at 06:52:57PM -0700, Weng Xuetian wrote: > I dont follow the need for this. kitty already doesnt send anything in response to done events. the reason is that it’s triggered by preedit update when preedit is same. not explicitly reply anything to done.
But does that actually cause an infinite recursion? And if so, why? And why does it not show up under mutter?

Sorry, but I can easily reproduce it under mutter. You need to use an input method that has preedit.

Then please specify how I can reproduce it. Which input method, and what kep presses to trigger it.

@wengxt
Copy link
Contributor Author

wengxt commented Oct 18, 2022

On Thu, Aug 11, 2022 at 06:52:57PM -0700, Weng Xuetian wrote: > I dont follow the need for this. kitty already doesnt send anything in response to done events. the reason is that it’s triggered by preedit update when preedit is same. not explicitly reply anything to done.
But does that actually cause an infinite recursion? And if so, why? And why does it not show up under mutter?

Sorry, but I can easily reproduce it under mutter. You need to use an input method that has preedit.

Then please specify how I can reproduce it. Which input method, and what kep presses to trigger it.

Any input method that has preedit can be used to reproduce. ibus-rime, ibus-libpinyin, ibus-chewing, mozc, etc... rime might be the easiest one for you to find since it's just listed as "Rime" under Chinese in gnome-control-center.

Those listed above should be able to produce some preedit if you just press any A-Z key.

@kovidgoyal
Copy link
Owner

Ok I'll take a look at this a little later, thanks.

@kovidgoyal kovidgoyal merged commit a6855bd into kovidgoyal:master Nov 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants