Fix shadowing in SDL_ibus.c and send a blank TextEditingEvent when ibus sends a HidePreeditText signal.
Take the window border size into account when positioning the ibus candidate list.