s_version is used only to initialize a global so there is no point for storing protocol version in a static member field and use funky syntax in the cpp file to initialize it. This change also simplifies the code.
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.