aWin->SetXICSpotLocation(compEvent.theReply.mCursorPosition);
nsPoint spot; spot.x = compEvent.theReply.mCursorPosition.x; spot.y = compEvent.theReply.mCursorPosition.y + compEvent.theReply.mCursorPosition.height; aWin->SetXICBaseFontSize(compEvent.theReply.mCursorPosition.height-1); aWin->SetXICSpotLocation(spot);
static gint composition_start(GdkEventKey *aEvent, nsWindow *aWin,                              nsEventStatus *aStatus) {  nsCompositionEvent compEvent;  compEvent.widget = (nsWidget*)aWin;  compEvent.point.x = 0;  compEvent.point.y = 0;  compEvent.time = aEvent->time;  compEvent.message = NS_COMPOSITION_START;  compEvent.eventStructType = NS_COMPOSITION_START;  compEvent.compositionMessage = NS_COMPOSITION_START;  aWin->DispatchEvent(&compEvent, *aStatus);  // set SpotLocation  aWin->SetXICSpotLocation(compEvent.theReply.mCursorPosition);  return PR_TRUE;}