Implement a handler for XIM_FORWARD_EVENT