imwayland: Handle enter and leave events
Before this patch, imwayland would assume that text-input enter and leave events follow the general (wl_keyboard) focus, and was unable to handle the situation where they would not be provided at the same time.
Input method may come and go without disturbing text-input (see wlroots implementation, and proper enter/leave events handle this case gracefully.