1XSetCloseDownMode(3) XLIB FUNCTIONS XSetCloseDownMode(3)
2
3
4
6 XSetCloseDownMode, XKillClient - control clients
7
9 int XSetCloseDownMode(Display *display, int close_mode);
10
11 int XKillClient(Display *display, XID resource);
12
14 close_mode
15 Specifies the client close-down mode. You can pass Destroy‐
16 All, RetainPermanent, or RetainTemporary.
17
18 display Specifies the connection to the X server.
19
20 resource Specifies any resource associated with the client that you
21 want to destroy or AllTemporary.
22
24 The XSetCloseDownMode defines what will happen to the client's re‐
25 sources at connection close. A connection starts in DestroyAll mode.
26 For information on what happens to the client's resources when the
27 close_mode argument is RetainPermanent or RetainTemporary, see section
28 2.6.
29
30 XSetCloseDownMode can generate a BadValue error.
31
32 The XKillClient function forces a close down of the client that created
33 the resource if a valid resource is specified. If the client has al‐
34 ready terminated in either RetainPermanent or RetainTemporary mode, all
35 of the client's resources are destroyed. If AllTemporary is specified,
36 the resources of all clients that have terminated in RetainTemporary
37 are destroyed (see section 2.5). This permits implementation of window
38 manager facilities that aid debugging. A client can set its close-down
39 mode to RetainTemporary. If the client then crashes, its windows would
40 not be destroyed. The programmer can then inspect the application's
41 window tree and use the window manager to destroy the zombie windows.
42
43 XKillClient can generate a BadValue error.
44
46 BadValue Some numeric value falls outside the range of values accepted
47 by the request. Unless a specific range is specified for an
48 argument, the full range defined by the argument's type is
49 accepted. Any argument defined as a set of alternatives can
50 generate this error.
51
53 Xlib - C Language X Interface
54
55
56
57X Version 11 libX11 1.7.0 XSetCloseDownMode(3)