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 16:38:14 +0000 (17:38 +0100)
commitf108f053d4c84dcdedce005a3491cbd503092185
tree5ddf233e127918a4515bfb7128769191fec71b44
parenteb599653e653ca185648fef3131ad65e3597fd2d
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