Do not reset pending state on zwp_input_method_v2.done
The protocol xml for zwp_input_method_v2.done
includes:
Neither current nor pending state are modified unless noted otherwise.
and reading the whole thing, I think it's pretty clear state is supposed to be persistent unless explicitly changed. zwp_input_method_v2.activate
is documented to reset the state. This is implemented in Squeekboard separately (see line 67) and I leave that untouched.