Improve the reentrant for wayland text-input-v3 implementation
In certain cases, gdk_display_sync may be invoked during the signal handling, which would potentially trigger another text_input_done when the previous state is not yet applied.
In certain cases, gdk_display_sync may be invoked during the signal handling, which would potentially trigger another text_input_done when the previous state is not yet applied.