When we lose focus, IME_ClearComposition() is called, which calls SDL_SendEditingText() with an empty string. We always deliver this, even if there's currently no composition. We probably should change the code so we don't send duplicate editing text events.