Blame man/XSetWMProtocols.man

Packit Service dc579d
.\" Copyright \(co 1985, 1986, 1987, 1988, 1989, 1990, 1991, 1994, 1996 X Consortium
Packit Service dc579d
.\"
Packit Service dc579d
.\" Permission is hereby granted, free of charge, to any person obtaining
Packit Service dc579d
.\" a copy of this software and associated documentation files (the
Packit Service dc579d
.\" "Software"), to deal in the Software without restriction, including
Packit Service dc579d
.\" without limitation the rights to use, copy, modify, merge, publish,
Packit Service dc579d
.\" distribute, sublicense, and/or sell copies of the Software, and to
Packit Service dc579d
.\" permit persons to whom the Software is furnished to do so, subject to
Packit Service dc579d
.\" the following conditions:
Packit Service dc579d
.\"
Packit Service dc579d
.\" The above copyright notice and this permission notice shall be included
Packit Service dc579d
.\" in all copies or substantial portions of the Software.
Packit Service dc579d
.\"
Packit Service dc579d
.\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
Packit Service dc579d
.\" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
Packit Service dc579d
.\" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
Packit Service dc579d
.\" IN NO EVENT SHALL THE X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR
Packit Service dc579d
.\" OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
Packit Service dc579d
.\" ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
Packit Service dc579d
.\" OTHER DEALINGS IN THE SOFTWARE.
Packit Service dc579d
.\"
Packit Service dc579d
.\" Except as contained in this notice, the name of the X Consortium shall
Packit Service dc579d
.\" not be used in advertising or otherwise to promote the sale, use or
Packit Service dc579d
.\" other dealings in this Software without prior written authorization
Packit Service dc579d
.\" from the X Consortium.
Packit Service dc579d
.\"
Packit Service dc579d
.\" Copyright \(co 1985, 1986, 1987, 1988, 1989, 1990, 1991 by
Packit Service dc579d
.\" Digital Equipment Corporation
Packit Service dc579d
.\"
Packit Service dc579d
.\" Portions Copyright \(co 1990, 1991 by
Packit Service dc579d
.\" Tektronix, Inc.
Packit Service dc579d
.\"
Packit Service dc579d
.\" Permission to use, copy, modify and distribute this documentation for
Packit Service dc579d
.\" any purpose and without fee is hereby granted, provided that the above
Packit Service dc579d
.\" copyright notice appears in all copies and that both that copyright notice
Packit Service dc579d
.\" and this permission notice appear in all copies, and that the names of
Packit Service dc579d
.\" Digital and Tektronix not be used in in advertising or publicity pertaining
Packit Service dc579d
.\" to this documentation without specific, written prior permission.
Packit Service dc579d
.\" Digital and Tektronix makes no representations about the suitability
Packit Service dc579d
.\" of this documentation for any purpose.
Packit Service dc579d
.\" It is provided ``as is'' without express or implied warranty.
Packit Service dc579d
.\" 
Packit Service dc579d
.\"
Packit Service dc579d
.ds xT X Toolkit Intrinsics \- C Language Interface
Packit Service dc579d
.ds xW Athena X Widgets \- C Language X Toolkit Interface
Packit Service dc579d
.ds xL Xlib \- C Language X Interface
Packit Service dc579d
.ds xC Inter-Client Communication Conventions Manual
Packit Service dc579d
.na
Packit Service dc579d
.de Ds
Packit Service dc579d
.nf
Packit Service dc579d
.\\$1D \\$2 \\$1
Packit Service dc579d
.ft CW
Packit Service dc579d
.\".ps \\n(PS
Packit Service dc579d
.\".if \\n(VS>=40 .vs \\n(VSu
Packit Service dc579d
.\".if \\n(VS<=39 .vs \\n(VSp
Packit Service dc579d
..
Packit Service dc579d
.de De
Packit Service dc579d
.ce 0
Packit Service dc579d
.if \\n(BD .DF
Packit Service dc579d
.nr BD 0
Packit Service dc579d
.in \\n(OIu
Packit Service dc579d
.if \\n(TM .ls 2
Packit Service dc579d
.sp \\n(DDu
Packit Service dc579d
.fi
Packit Service dc579d
..
Packit Service dc579d
.de IN		\" send an index entry to the stderr
Packit Service dc579d
..
Packit Service dc579d
.de Pn
Packit Service dc579d
.ie t \\$1\fB\^\\$2\^\fR\\$3
Packit Service dc579d
.el \\$1\fI\^\\$2\^\fP\\$3
Packit Service dc579d
..
Packit Service dc579d
.de ZN
Packit Service dc579d
.ie t \fB\^\\$1\^\fR\\$2
Packit Service dc579d
.el \fI\^\\$1\^\fP\\$2
Packit Service dc579d
..
Packit Service dc579d
.de hN
Packit Service dc579d
.ie t <\fB\\$1\fR>\\$2
Packit Service dc579d
.el <\fI\\$1\fP>\\$2
Packit Service dc579d
..
Packit Service dc579d
.ny0
Packit Service dc579d
.TH XSetWMProtocols __libmansuffix__ __xorgversion__ "XLIB FUNCTIONS"
Packit Service dc579d
.SH NAME
Packit Service dc579d
XSetWMProtocols, XGetWMProtocols \- set or read a window's WM_PROTOCOLS property
Packit Service dc579d
.SH SYNTAX
Packit Service dc579d
.HP
Packit Service dc579d
Status XSetWMProtocols\^(\^Display *\fIdisplay\fP\^, Window \fIw\fP\^, Atom
Packit Service dc579d
*\fIprotocols\fP\^, int \fIcount\fP\^); 
Packit Service dc579d
.HP
Packit Service dc579d
Status XGetWMProtocols\^(\^Display *\fIdisplay\fP\^, Window \fIw\fP\^, Atom
Packit Service dc579d
**\fIprotocols_return\fP\^, int *\fIcount_return\fP\^); 
Packit Service dc579d
.SH ARGUMENTS
Packit Service dc579d
.IP \fIdisplay\fP 1i
Packit Service dc579d
Specifies the connection to the X server.
Packit Service dc579d
.ds Cn protocols in the list
Packit Service dc579d
.IP \fIcount\fP 1i
Packit Service dc579d
Specifies the number of \*(Cn.
Packit Service dc579d
.ds Cn protocols in the list
Packit Service dc579d
.IP \fIcount_return\fP 1i
Packit Service dc579d
Returns the number of \*(Cn.
Packit Service dc579d
.IP \fIprotocols\fP 1i
Packit Service dc579d
Specifies the list of protocols.
Packit Service dc579d
.IP \fIprotocols_return\fP 1i
Packit Service dc579d
Returns the list of protocols.
Packit Service dc579d
.SH DESCRIPTION
Packit Service dc579d
The 
Packit Service dc579d
.ZN XSetWMProtocols 
Packit Service dc579d
function replaces the WM_PROTOCOLS property on the specified window 
Packit Service dc579d
with the list of atoms specified by the protocols argument.
Packit Service dc579d
If the property does not already exist,
Packit Service dc579d
.ZN XSetWMProtocols
Packit Service dc579d
sets the WM_PROTOCOLS property on the specified window
Packit Service dc579d
to the list of atoms specified by the protocols argument.
Packit Service dc579d
The property is stored with a type of ATOM and a format of 32.
Packit Service dc579d
If it cannot intern the WM_PROTOCOLS atom, 
Packit Service dc579d
.ZN XSetWMProtocols
Packit Service dc579d
returns a zero status.
Packit Service dc579d
Otherwise, it returns a nonzero status.
Packit Service dc579d
.LP
Packit Service dc579d
.ZN XSetWMProtocols
Packit Service dc579d
can generate
Packit Service dc579d
.ZN BadAlloc
Packit Service dc579d
and
Packit Service dc579d
.ZN BadWindow
Packit Service dc579d
errors.
Packit Service dc579d
.LP
Packit Service dc579d
The 
Packit Service dc579d
.ZN XGetWMProtocols 
Packit Service dc579d
function returns the list of atoms stored in the WM_PROTOCOLS property 
Packit Service dc579d
on the specified window.
Packit Service dc579d
These atoms describe window manager protocols in which the owner 
Packit Service dc579d
of this window is willing to participate.
Packit Service dc579d
If the property exists, is of type ATOM, is of format 32, 
Packit Service dc579d
and the atom WM_PROTOCOLS can be interned, 
Packit Service dc579d
.ZN XGetWMProtocols
Packit Service dc579d
sets the protocols_return argument to a list of atoms, 
Packit Service dc579d
sets the count_return argument to the number of elements in the list, 
Packit Service dc579d
and returns a nonzero status.
Packit Service dc579d
Otherwise, it sets neither of the return arguments
Packit Service dc579d
and returns a zero status.
Packit Service dc579d
To release the list of atoms, use
Packit Service dc579d
.ZN XFree .
Packit Service dc579d
.LP
Packit Service dc579d
.ZN XGetWMProtocols
Packit Service dc579d
can generate a
Packit Service dc579d
.ZN BadWindow
Packit Service dc579d
error.
Packit Service dc579d
.SH PROPERTIES
Packit Service dc579d
.TP 1i
Packit Service dc579d
\s-1WM_PROTOCOLS\s+1
Packit Service dc579d
List of atoms that identify the communications protocols between the
Packit Service dc579d
client and window manager in which the client is willing to participate.
Packit Service dc579d
.SH DIAGNOSTICS
Packit Service dc579d
.TP 1i
Packit Service dc579d
.ZN BadAlloc
Packit Service dc579d
The server failed to allocate the requested resource or server memory.
Packit Service dc579d
.TP 1i
Packit Service dc579d
.ZN BadWindow
Packit Service dc579d
A value for a Window argument does not name a defined Window.
Packit Service dc579d
.SH "SEE ALSO"
Packit Service dc579d
XAllocClassHint(__libmansuffix__),
Packit Service dc579d
XAllocIconSize(__libmansuffix__),
Packit Service dc579d
XAllocSizeHints(__libmansuffix__),
Packit Service dc579d
XAllocWMHints(__libmansuffix__),
Packit Service dc579d
XFree(__libmansuffix__),
Packit Service dc579d
XSetCommand(__libmansuffix__),
Packit Service dc579d
XSetTransientForHint(__libmansuffix__),
Packit Service dc579d
XSetTextProperty(__libmansuffix__),
Packit Service dc579d
XSetWMClientMachine(__libmansuffix__),
Packit Service dc579d
XSetWMColormapWindows(__libmansuffix__),
Packit Service dc579d
XSetWMIconName(__libmansuffix__),
Packit Service dc579d
XSetWMName(__libmansuffix__),
Packit Service dc579d
XSetWMProperties(__libmansuffix__),
Packit Service dc579d
XStringListToTextProperty(__libmansuffix__)
Packit Service dc579d
.br
Packit Service dc579d
\fI\*(xL\fP