/*
 * -- $Header: /cec/src/nestor/servers/R3/shXlib/XGetPCnt.c,v 1.1.1.1
 * 90/04/23 09:59:15 spanachi Exp $
 */
#include "copyright.h"

/* $XConsortium: XGetPCnt.c,v 11.10 88/09/06 16:08:10 jim Exp $ */
/* Copyright    Massachusetts Institute of Technology    1986	 */
/* -- MULTIPLEX Extension -- */

#define NEED_REPLIES
#include "Xlibint.h"

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

XGetPointerControl (dpy, accel_numer, accel_denom, threshold)
  register Display *dpy;
/* the following are return only vars */
  int *accel_numer, *accel_denom;
  int *threshold;
{
  xGetPointerControlReply rep;
  xReq *req;

  /* -- flush default dpy's queue to keep buffers aligned -- */
  XmuXFlushDefault (dpy);
  /* -- switch to the chalk holder display -- */
  dpy = XmuXChalkDisplay (dpy);

  LockDisplay (dpy);
  GetEmptyReq (GetPointerControl, req);
  (void) _XReply (dpy, (xReply *) & rep, 0, xTrue);
  *accel_numer = rep.accelNumerator;
  *accel_denom = rep.accelDenominator;
  *threshold = rep.threshold;
  UnlockDisplay (dpy);
  SyncHandle ();
}
