NAME
XDestroyWindow, XDestroySubwindows - destroy windows
SYNTAX
int XDestroyWindow(Display *_d_i_s_p_l_a_y, Window _w);
int XDestroySubwindows(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 window 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 specified 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 performed 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