


XWarpPointer(3X11)					   XWarpPointer(3X11)
X11R5									X11R5



NAME
  XWarpPointer - move pointer

SYNTAX
  XWarpPointer(_d_i_s_p_l_a_y,	_s_r_c__w, _d_e_s_t__w, _s_r_c__x, _s_r_c__y, _s_r_c__w_i_d_t_h,	_s_r_c__h_e_i_g_h_t,
  _d_e_s_t__x,
		  _d_e_s_t__y)
	  Display *_d_i_s_p_l_a_y;
	  Window _s_r_c__w,	_d_e_s_t__w;
	  int _s_r_c__x, _s_r_c__y;
	  unsigned int _s_r_c__w_i_d_t_h, _s_r_c__h_e_i_g_h_t;
	  int _d_e_s_t__x, _d_e_s_t__y;

ARGUMENTS

  _d_e_s_t__w    Specifies the destination window or	_N_o_n_e.

  _d_e_s_t__x
  _d_e_s_t__y    Specify the	x and y	coordinates within the destination window.

  _d_i_s_p_l_a_y   Specifies the connection to	the X server.

  _s_r_c__x
  _s_r_c__y
  _s_r_c__w_i_d_t_h
  _s_r_c__h_e_i_g_h_t
	    Specify a rectangle	in the source window.

  _s_r_c__w	    Specifies the source window	or _N_o_n_e.

DESCRIPTION
  If dest_w is _N_o_n_e, _X_W_a_r_p_P_o_i_n_t_e_r moves	the pointer by the offsets (dest_x,
  dest_y) relative to the current position of the pointer.  If dest_w is a
  window, _X_W_a_r_p_P_o_i_n_t_e_r moves the pointer to the	offsets	(dest_x, dest_y)
  relative to the origin of dest_w.  However, if src_w is a window, the	move
  only takes place if the window src_w contains	the pointer and	if the speci-
  fied rectangle of src_w contains the pointer.

  The src_x and	src_y coordinates are relative to the origin of	src_w.	If
  src_height is	zero, it is replaced with the current height of	src_w minus
  src_y.  If src_width is zero,	it is replaced with the	current	width of
  src_w	minus src_x.

  There	is seldom any reason for calling this function.	The pointer should
  normally be left to the user.	 If you	do use this function, however, it
  generates events just	as if the user had instantaneously moved the pointer
  from one position to another.	 Note that you cannot use _X_W_a_r_p_P_o_i_n_t_e_r to
  move the pointer outside the confine_to window of an active pointer grab.
  An attempt to	do so will only	move the pointer as far	as the closest edge
  of the confine_to window.


  _X_W_a_r_p_P_o_i_n_t_e_r can generate a _B_a_d_W_i_n_d_o_w	error.

DIAGNOSTICS

  _B_a_d_W_i_n_d_o_w A value for	a Window argument does not name	a defined Window.

SEE ALSO
  XSetInputFocus(3X11)
  _X_l_i_b - _C _L_a_n_g_u_a_g_e _X _I_n_t_e_r_f_a_c_e































































