Alexandre Julliard pushed to branch master at wine / wine
Commits: 466e1e29 by Alexandros Frantzis at 2025-06-06T18:15:58+02:00 winewayland: Improve cleanup of text-input pending state.
Ensure state resources are cleaned up when not needed, and also avoid memory leaks in case we get multiple events for the same state before a "done" event.
- - - - - 18383e00 by Alexandros Frantzis at 2025-06-06T18:15:58+02:00 winewayland: Ignore text-input "done" events that don't modify state.
Compositors send a "done" event after every text-input commit, even if the reported state (preedit etc) hasn't changed. Acting on such events is at best wasteful, but can additionally lead to incorrect IME related effects (e.g., deleting the currently selected text), so ignore them, similarly to what Qt and GTK do.
- - - - -
2 changed files:
- dlls/winewayland.drv/wayland_text_input.c - dlls/winewayland.drv/waylanddrv.h
View it on GitLab: https://gitlab.winehq.org/wine/wine/-/compare/5e8399814fbf315e40cf2b70162c61...