


XRaiseWindow(3X11)					   XRaiseWindow(3X11)
X11R5									X11R5



NAME
  XRaiseWindow,	XLowerWindow, XCirculateSubwindows, XCirculateSubwindowsUp,
  XCirculateSubwindowsDown, XRestackWindows - change window stacking order

SYNTAX
  XRaiseWindow(_d_i_s_p_l_a_y,	_w)
	Display	*_d_i_s_p_l_a_y;
	Window _w;

  XLowerWindow(_d_i_s_p_l_a_y,	_w)
	Display	*_d_i_s_p_l_a_y;
	Window _w;

  XCirculateSubwindows(_d_i_s_p_l_a_y,	_w, _d_i_r_e_c_t_i_o_n)
	Display	*_d_i_s_p_l_a_y;
	Window _w;
	int _d_i_r_e_c_t_i_o_n;

  XCirculateSubwindowsUp(_d_i_s_p_l_a_y, _w)
	Display	*_d_i_s_p_l_a_y;
	Window _w;

  XCirculateSubwindowsDown(_d_i_s_p_l_a_y, _w)
	Display	*_d_i_s_p_l_a_y;
	Window _w;

  XRestackWindows(_d_i_s_p_l_a_y, _w_i_n_d_o_w_s, _n_w_i_n_d_o_w_s);
	Display	*_d_i_s_p_l_a_y;
	Window _w_i_n_d_o_w_s[];
	int _n_w_i_n_d_o_w_s;

ARGUMENTS

  _d_i_r_e_c_t_i_o_n Specifies the direction (up	or down) that you want to circulate
	    the	window.	You can	pass _R_a_i_s_e_L_o_w_e_s_t or _L_o_w_e_r_H_i_g_h_e_s_t.

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

  _n_w_i_n_d_o_w_s  Specifies the number of windows to be restacked.

  _w	    Specifies the window.

  _w_i_n_d_o_w_s   Specifies an array containing the windows to be restacked.

DESCRIPTION
  The _X_R_a_i_s_e_W_i_n_d_o_w function raises the specified window	to the top of the
  stack	so that	no sibling window obscures it.	If the windows are regarded
  as overlapping sheets	of paper stacked on a desk, then raising a window is
  analogous to moving the sheet	to the top of the stack	but leaving its	x and
  y location on	the desk constant.  Raising a mapped window may	generate
  _E_x_p_o_s_e events	for the	window and any mapped subwindows that were formerly
  obscured.

  If the override-redirect attribute of	the window is _F_a_l_s_e and	some other
  client has selected _S_u_b_s_t_r_u_c_t_u_r_e_R_e_d_i_r_e_c_t_M_a_s_k on the parent, the X server
  generates a _C_o_n_f_i_g_u_r_e_R_e_q_u_e_s_t event, and no processing	is performed.  Other-
  wise,	the window is raised.

  _X_R_a_i_s_e_W_i_n_d_o_w can generate a _B_a_d_W_i_n_d_o_w	error.

  The _X_L_o_w_e_r_W_i_n_d_o_w function lowers the specified window	to the bottom of the
  stack	so that	it does	not obscure any	sibling	windows.  If the windows are
  regarded as overlapping sheets of paper stacked on a desk, then lowering a
  window is analogous to moving	the sheet to the bottom	of the stack but
  leaving its x	and y location on the desk constant.  Lowering a mapped	win-
  dow will generate _E_x_p_o_s_e events on any windows it formerly obscured.

  If the override-redirect attribute of	the window is _F_a_l_s_e and	some other
  client has selected _S_u_b_s_t_r_u_c_t_u_r_e_R_e_d_i_r_e_c_t_M_a_s_k on the parent, the X server
  generates a _C_o_n_f_i_g_u_r_e_R_e_q_u_e_s_t event, and no processing	is performed. Other-
  wise,	the window is lowered to the bottom of the stack.

  _X_L_o_w_e_r_W_i_n_d_o_w can generate a _B_a_d_W_i_n_d_o_w	error.

  The _X_C_i_r_c_u_l_a_t_e_S_u_b_w_i_n_d_o_w_s function circulates children	of the specified win-
  dow in the specified direction.  If you specify _R_a_i_s_e_L_o_w_e_s_t, _X_C_i_r_c_u_l_a_-
  _t_e_S_u_b_w_i_n_d_o_w_s raises the lowest mapped	child (if any) that is occluded	by
  another child	to the top of the stack.  If you specify _L_o_w_e_r_H_i_g_h_e_s_t, _X_C_i_r_-
  _c_u_l_a_t_e_S_u_b_w_i_n_d_o_w_s lowers the highest mapped child (if any) that occludes
  another child	to the bottom of the stack.  Exposure processing is then per-
  formed on formerly obscured windows.	If some	other client has selected
  _S_u_b_s_t_r_u_c_t_u_r_e_R_e_d_i_r_e_c_t_M_a_s_k on the window, the X	server generates a _C_i_r_c_u_l_a_-
  _t_e_R_e_q_u_e_s_t event, and no further processing is	performed.  If a child is
  actually restacked, the X server generates a _C_i_r_c_u_l_a_t_e_N_o_t_i_f_y event.

  _X_C_i_r_c_u_l_a_t_e_S_u_b_w_i_n_d_o_w_s can generate _B_a_d_V_a_l_u_e and _B_a_d_W_i_n_d_o_w errors.

  The _X_C_i_r_c_u_l_a_t_e_S_u_b_w_i_n_d_o_w_s_U_p function raises the lowest	mapped child of	the
  specified window that	is partially or	completely occluded by another child.
  Completely unobscured	children are not affected.  This is a convenience
  function equivalent to _X_C_i_r_c_u_l_a_t_e_S_u_b_w_i_n_d_o_w_s with _R_a_i_s_e_L_o_w_e_s_t specified.

  _X_C_i_r_c_u_l_a_t_e_S_u_b_w_i_n_d_o_w_s_U_p can generate a	_B_a_d_W_i_n_d_o_w error.

  The _X_C_i_r_c_u_l_a_t_e_S_u_b_w_i_n_d_o_w_s_D_o_w_n function	lowers the highest mapped child	of
  the specified	window that partially or completely occludes another child.
  Completely unobscured	children are not affected.  This is a convenience
  function equivalent to _X_C_i_r_c_u_l_a_t_e_S_u_b_w_i_n_d_o_w_s with _L_o_w_e_r_H_i_g_h_e_s_t	specified.

  _X_C_i_r_c_u_l_a_t_e_S_u_b_w_i_n_d_o_w_s_D_o_w_n can generate	a _B_a_d_W_i_n_d_o_w error.

  The _X_R_e_s_t_a_c_k_W_i_n_d_o_w_s function restacks	the windows in the order specified,
  from top to bottom.  The stacking order of the first window in the windows
  array	is unaffected, but the other windows in	the array are stacked under-
  neath	the first window, in the order of the array.  The stacking order of
  the other windows is not affected.  For each window in the window array
  that is not a	child of the specified window, a _B_a_d_M_a_t_c_h error	results.

  If the override-redirect attribute of	a window is _F_a_l_s_e and some other
  client has selected _S_u_b_s_t_r_u_c_t_u_r_e_R_e_d_i_r_e_c_t_M_a_s_k on the parent, the X server
  generates _C_o_n_f_i_g_u_r_e_R_e_q_u_e_s_t events for	each window whose override-redirect
  flag is not set, and no further processing is	performed.  Otherwise, the
  windows will be restacked in top to bottom order.

  _X_R_e_s_t_a_c_k_W_i_n_d_o_w_s can generate _B_a_d_W_i_n_d_o_w error.



DIAGNOSTICS

  _B_a_d_V_a_l_u_e  Some numeric value falls outside the range of values accepted by
	    the	request.  Unless a specific range is specified for an argu-
	    ment, the full range defined by the	argument's type	is accepted.
	    Any	argument defined as a set of alternatives can generate this
	    error.

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

SEE ALSO
  XChangeWindowAttributes(3X11), XConfigureWindow(3X11), XCreateWindow(3X11),
  XDestroyWindow(3X11),	XMapWindow(3X11), XUnmapWindow(3X11)
  _X_l_i_b - _C _L_a_n_g_u_a_g_e _X _I_n_t_e_r_f_a_c_e	delim off


























































