XDestroyWindow(3X11) AIX (XLIB FUNCTIONS) XDestroyWindow(3X11) 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 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 des- troyed. _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 win- dows 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 actu- ally 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 Rev. Release 5 Page 1 XDestroyWindow(3X11) AIX (XLIB FUNCTIONS) XDestroyWindow(3X11) 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 Rev. Release 5 Page 2