/*
 * -- $Header: /cec/src/nestor/servers/R3/shXlib/XUndefCurs.c,v 1.1.1.1
 * 90/04/23 10:08:27 spanachi Exp $
 */

#include "copyright.h"

/* $XConsortium: XUndefCurs.c,v 11.7 88/09/06 16:11:38 jim Exp $ */
/* Copyright    Massachusetts Institute of Technology    1986	 */

/* -- MULTIPLEX Extension -- */

#include "Xlibint.h"

/* -- additional includes -- */
#include "resources.h"

XUndefineCursor (dpy, w)
  register Display *dpy;
  Window w;
{
  register xChangeWindowAttributesReq *req;
  unsigned long defcurs = None;

  LockDisplay (dpy);
  GetReqExtra (ChangeWindowAttributes, 4, req);
  req->window = w;
  req->valueMask = CWCursor;
  OneDataCard32 (dpy, NEXTPTR (req, xChangeWindowAttributesReq), defcurs);

  /* -- update the appropriate resource info if necessary -- */
  if (XmuXStoreResources (dpy)) {
    XSetWindowAttributes attributes;

    attributes.cursor = defcurs;
    XmuXUpdateWindowInfo (dpy, w, CWCursor, &attributes);
  }

  UnlockDisplay (dpy);
  SyncHandle ();
}
