Skip to content

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

Merged
kovidgoyal merged 1 commit into
kovidgoyal:masterfrom
wengxt:no_cursor_update_if_not_changed
Nov 1, 2022
Merged

Fix message recursion between wayland compositor (#5360)#5369
kovidgoyal merged 1 commit into
kovidgoyal:masterfrom
wengxt:no_cursor_update_if_not_changed

Conversation

@wengxt

@wengxt wengxt commented Aug 11, 2022

Copy link
Copy Markdown
Contributor
  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
Copy Markdown
Owner

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

@wengxt

wengxt commented Aug 12, 2022

Copy link
Copy Markdown
Contributor Author

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

kovidgoyal commented Oct 11, 2022 via email

Copy link
Copy Markdown
Owner

@wengxt

wengxt commented Oct 18, 2022

Copy link
Copy Markdown
Contributor Author

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

wengxt commented Oct 18, 2022

Copy link
Copy Markdown
Contributor Author

Upload a video as proof.

1.mp4

@kovidgoyal

Copy link
Copy Markdown
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

wengxt commented Oct 18, 2022

Copy link
Copy Markdown
Contributor Author

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
Copy Markdown
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