private static void updateGrabbedCursor(Cursor cur){
  XBaseWindow target=XAwtState.getGrabWindow();
  if (target instanceof XWindowPeer) {
    XWindowPeer grabber=(XWindowPeer)target;
    grabber.pSetCursor(cur);
  }
}

private static void updateGrabbedCursor ( Cursor cur ) { XBaseWindow target = XAwtState . getGrabWindow ( ) ; if ( target instanceof XWindowPeer ) { XWindowPeer grabber = ( XWindowPeer ) target ; grabber . pSetCursor ( cur ) ; } }
updates cursor on the grabber if it is window peer ( i . e . current grab is for swing , not for awt .
