Do not unset DISPLAY and XAUTHORITY for input method.
Those variables are required for XIM to work for Xwayland application.
https://www.x.org/releases/X11R7.6/doc/libX11/specs/XIM/xim.html
Those variables are required for XIM to work for Xwayland application.
https://www.x.org/releases/X11R7.6/doc/libX11/specs/XIM/xim.html