static boolean isXsunKPBehavior(){
  awtLock();
  try {
    if (awt_IsXsunKPBehavior == 0) {
      if (XlibWrapper.IsXsunKPBehavior(getDisplay())) {
        awt_IsXsunKPBehavior=XSUN_KP_BEHAVIOR;
      }
 else {
        awt_IsXsunKPBehavior=XORG_KP_BEHAVIOR;
      }
    }
    return awt_IsXsunKPBehavior == XSUN_KP_BEHAVIOR ? true : false;
  }
  finally {
    awtUnlock();
  }
}

static boolean isXsunKPBehavior ( ) { awtLock ( ) ; try { if ( awt_IsXsunKPBehavior == 0 ) { if ( XlibWrapper . IsXsunKPBehavior ( getDisplay ( ) ) ) { awt_IsXsunKPBehavior = XSUN_KP_BEHAVIOR ; } else { awt_IsXsunKPBehavior = XORG_KP_BEHAVIOR ; } } return awt_IsXsunKPBehavior == XSUN_KP_BEHAVIOR ? true : false ; } finally { awtUnlock ( ) ; } }
check for xsun convention regarding numpad keys . xsun and some other servers ( i . e . derived from xsun ) under certain conditions process numpad keys unlike xorg .
