xref: /386bsd/usr/X386/man/man3/XSetCloseDownMode.3x (revision a2142627)
.\\$1D \\$2 \\$1
.ps \\n(PS
.if \\n(VS>=40 .vs \\n(VSu
.if \\n(VS<=39 .vs \\n(VSp
..

0 .nr BD 0

..

.KS .TA .5i 3i

..
.KE

.. .. .KS

.D

choose appropriate monospace font
the imagen conditional, 480,
may be changed to L if LB is too
heavy for your eyes...

.. .R .. .. .. .TB

\\*(NO .R .. . \" Note End -- doug kraft 3/85

0 .. .ny0

XSetCloseDownMode 3X11 "Release 5" "X Version 11" "XLIB FUNCTIONS"
NAME
XSetCloseDownMode, XKillClient - control clients
SYNTAX
$Header: XChClsDwnMd.f,v 1.1 88/02/26 09:58:30 mento Exp $
XSetCloseDownMode\^(\^display, close_mode\^)

Display *display\^;

int close_mode\^;

$Header: XKillClient.f,v 1.1 88/02/26 10:01:20 mento Exp $
XKillClient\^(\^display, resource\^)

Display *display\^;

XID resource\^;

ARGUMENTS
$Header: closemode.a,v 1.4 88/05/14 09:00:07 mento Exp $
close_mode 1i
Specifies the client close-down mode. You can pass .ZN DestroyAll , .ZN RetainPermanent , or .ZN RetainTemporary . $Header: display.a,v 1.1 88/02/26 10:26:29 mento Exp $
display 1i
Specifies the connection to the X server. $Header: resource.a,v 1.2 88/05/14 09:01:41 mento Exp $
resource 1i
Specifies any resource associated with the client that you want to destroy or .ZN AllTemporary .
DESCRIPTION
$Header: XChClsDwnMd.d,v 1.3 88/08/19 20:35:01 mento Exp $
The .ZN XSetCloseDownMode defines what will happen to the client's resources at connection close. A connection starts in .ZN DestroyAll mode. For information on what happens to the client's resources when the close_mode argument is .ZN RetainPermanent or .ZN RetainTemporary , see section 2.6.

.ZN XSetCloseDownMode can generate a .ZN BadValue error.

$Header: XKillClient.d,v 1.3 88/08/19 20:35:43 mento Exp $
The .ZN XKillClient function forces a close-down of the client that created the resource if a valid resource is specified. If the client has already terminated in either .ZN RetainPermanent or .ZN RetainTemporary mode, all of the client's resources are destroyed. If .ZN AllTemporary is specified, the resources of all clients that have terminated in .ZN RetainTemporary are destroyed (see section 2.5). This permits implementation of window manager facilities that aid debugging. A client can set its close-down mode to .ZN RetainTemporary . If the client then crashes, its windows would not be destroyed. The programmer can then inspect the application's window tree and use the window manager to destroy the zombie windows.

.ZN XKillClient can generate a .ZN BadValue error.

DIAGNOSTICS
$Header: badvalue.e,v 1.1 87/09/04 08:23:19 mento Exp $

1i .ZN BadValue Some numeric value falls outside the range of values accepted by the request. Unless a specific range is specified for an argument, the full range defined by the argument's type is accepted. Any argument defined as a set of alternatives can generate this error.

"SEE ALSO"
\*(xL