


XDestroyWindow(3X11)					 XDestroyWindow(3X11)
X11R5									X11R5



NAME
  XDestroyWindow, XDestroySubwindows - destroy windows

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

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

ARGUMENTS

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

  _w	    Specifies the window.

DESCRIPTION
  The _X_D_e_s_t_r_o_y_W_i_n_d_o_w function destroys the specified window as well as all of
  its subwindows and causes the	X server to generate a _D_e_s_t_r_o_y_N_o_t_i_f_y event
  for each window.  The	window should never be referenced again.  If the win-
  dow specified	by the w argument is mapped, it	is unmapped automatically.
  The ordering of the _D_e_s_t_r_o_y_N_o_t_i_f_y events is such that	for any	given window
  being	destroyed, _D_e_s_t_r_o_y_N_o_t_i_f_y is generated on any inferiors of the window
  before being generated on the	window itself.	The ordering among siblings
  and across subhierarchies is not otherwise constrained.  If the window you
  specified is a root window, no windows are destroyed.	 Destroying a mapped
  window will generate _E_x_p_o_s_e events on	other windows that were	obscured by
  the window being destroyed.

  _X_D_e_s_t_r_o_y_W_i_n_d_o_w can generate a	_B_a_d_W_i_n_d_o_w error.

  The _X_D_e_s_t_r_o_y_S_u_b_w_i_n_d_o_w_s function destroys all inferior	windows	of the speci-
  fied window, in bottom-to-top	stacking order.	 It causes the X server	to
  generate a _D_e_s_t_r_o_y_N_o_t_i_f_y event for each window.  If any mapped subwindows
  were actually	destroyed, _X_D_e_s_t_r_o_y_S_u_b_w_i_n_d_o_w_s causes the X server to generate
  _E_x_p_o_s_e events	on the specified window.  This is much more efficient than
  deleting many	windows	one at a time because much of the work need be per-
  formed only once for all of the windows, rather than for each	window.	 The
  subwindows should never be referenced	again.

  _X_D_e_s_t_r_o_y_S_u_b_w_i_n_d_o_w_s 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
  XChangeWindowAttributes(3X11), XConfigureWindow(3X11), XCreateWindow(3X11),
  XMapWindow(3X11), XRaiseWindow(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






