1XDestroyWindow(3)               XLIB FUNCTIONS               XDestroyWindow(3)
2
3
4

NAME

6       XDestroyWindow, XDestroySubwindows - destroy windows
7

SYNTAX

9       int XDestroyWindow(Display *display, Window w);
10
11       int XDestroySubwindows(Display *display, Window w);
12

ARGUMENTS

14       display   Specifies the connection to the X server.
15
16       w         Specifies the window.
17

DESCRIPTION

19       The  XDestroyWindow  function  destroys the specified window as well as
20       all of its subwindows and causes the X server to generate a  DestroyNo‐
21       tify  event  for  each  window.   The window should never be referenced
22       again.  If the window specified by the w  argument  is  mapped,  it  is
23       unmapped  automatically.   The  ordering of the DestroyNotify events is
24       such that for any given window being destroyed, DestroyNotify is gener‐
25       ated  on any inferiors of the window before being generated on the win‐
26       dow itself.  The ordering among siblings and across  subhierarchies  is
27       not  otherwise constrained.  If the window you specified is a root win‐
28       dow, no windows are destroyed.  Destroying a mapped window will  gener‐
29       ate  Expose  events  on  other windows that were obscured by the window
30       being destroyed.
31
32       XDestroyWindow can generate a BadWindow error.
33
34       The XDestroySubwindows function destroys all inferior  windows  of  the
35       specified  window,  in  bottom-to-top  stacking order.  It causes the X
36       server to generate a DestroyNotify  event  for  each  window.   If  any
37       mapped  subwindows  were  actually destroyed, XDestroySubwindows causes
38       the X server to generate Expose events on the specified  window.   This
39       is much more efficient than deleting many windows one at a time because
40       much of the work need be performed only once for all  of  the  windows,
41       rather than for each window.  The subwindows should never be referenced
42       again.
43
44       XDestroySubwindows can generate a BadWindow error.
45

DIAGNOSTICS

47       BadWindow A value for a Window argument does not name a defined Window.
48

SEE ALSO

50       XChangeWindowAttributes(3),   XConfigureWindow(3),    XCreateWindow(3),
51       XMapWindow(3), XRaiseWindow(3), XUnmapWindow(3)
52       Xlib - C Language X Interface
53
54
55
56X Version 11                     libX11 1.6.9                XDestroyWindow(3)
Impressum