This commit implements the zwp_text_input_v3 in kwayland-server, part of code is inspired based on the initial patch from Roman at D16735.