gtk/imwayland: Use serial to control outbound messages
authorCarlos Garnacho <carlosg@gnome.org>
Tue, 18 Jan 2022 22:31:09 +0000 (23:31 +0100)
committerCarlos Garnacho <carlosg@gnome.org>
Wed, 16 Mar 2022 18:50:21 +0000 (19:50 +0100)
commit07a5cf4996e3774c743bb5a8d97e07ca45d1b4c3
tree7dcd8816438f0940f66a0090d6f6e7b72b9c26f3
parentd808298b68b919b4cd9eb834b2da8d0d72759c55
gtk/imwayland: Use serial to control outbound messages

Following the text-input protocol changes at
https://gitlab.freedesktop.org/wayland/wayland-protocols/-/merge_requests/115,
use the serial number to have the client push changes to the
zwp_text_input_v3 object only after compositor/client states match.

This specifically is more lenient to compositors pushing multiple
.done events ahead of the client replying to them.

Closes: https://gitlab.gnome.org/GNOME/gtk/-/issues/3641
gtk/gtkimcontextwayland.c