1XDestroyWindow(3) XLIB FUNCTIONS XDestroyWindow(3)
2
3
4
6 XDestroyWindow, XDestroySubwindows - destroy windows
7
9 int XDestroyWindow(Display *display, Window w);
10
11 int XDestroySubwindows(Display *display, Window w);
12
14 display Specifies the connection to the X server.
15
16 w Specifies the window.
17
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 un‐
23 mapped automatically. The ordering of the DestroyNotify events is such
24 that for any given window being destroyed, DestroyNotify is generated
25 on any inferiors of the window before being generated on the window it‐
26 self. The ordering among siblings and across subhierarchies is not
27 otherwise constrained. If the window you specified is a root window,
28 no windows are destroyed. Destroying a mapped window will generate Ex‐
29 pose events on other windows that were obscured by the window being de‐
30 stroyed.
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
47 BadWindow A value for a Window argument does not name a defined Window.
48
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.8.7 XDestroyWindow(3)