Windows PowerShell command on Get-command XGetWMName
MyWebUniversity

Manual Pages for UNIX Operating System command usage for man XGetWMName

XLIB FUNCTIONS XSetWMName(3x11)

NAME

XSetWMName, XGetWMName, XStoreName, XFetchName - set or read

a window's WM_NAME property

SYNTAX

cc [ flag... ] file... -lX11 [ library... ]

void XSetWMName(Display *display, Window w, XTextProperty

*text_prop);

Status XGetWMName(Display *display, Window w, XTextProperty

*text_prop_return);

int XStoreName(Display *display, Window w, char

*window_name);

Status XFetchName(Display *display, Window w, char

**window_name_return);

ARGUMENTS display Specifies the connection to the X server.

text_prop Specifies the XTextProperty structure to be used.

text_prop_return

Returns the XTextProperty structure. w Specifies the window.

window_name

Specifies the window name, which should be a

null-terminated string.

window_name_return

Returns the window name, which is a null-

terminated string.

DESCRIPTION

The XSetWMName convenience function calls XSetTextProperty

to set the WM_NAME property.

The XGetWMName convenience function calls XGetTextProperty

to obtain the WM_NAME property. It returns a nonzero status

on success; otherwise, it returns a zero status. The XStoreName function assigns the name passed to

window_name to the specified window. A window manager can

display the window name in some prominent place, such as the title bar, to allow users to identify windows easily. Some window managers may display a window's name in the window's icon, although they are encouraged to use the window's icon name if one is provided by the application. If the string X Version 11 Last change: libX11 1.3.5 1 XLIB FUNCTIONS XSetWMName(3x11) is not in the Host Portable Character Encoding, the result

is implementation-dependent.

XStoreName can generate BadAlloc and BadWindow errors. The XFetchName function returns the name of the specified

window. If it succeeds, it returns a nonzero status; other-

wise, no name has been set for the window, and it returns

zero. If the WM_NAME property has not been set for this

window, XFetchName sets window_name_return to NULL. If the

data returned by the server is in the Latin Portable Charac-

ter Encoding, then the returned string is in the Host Port-

able Character Encoding. Otherwise, the result is

implementation-dependent. When finished with it, a client

must free the window name string using XFree. XFetchName can generate a BadWindow error. PROPERTIES

WM_NAME The name of the application.

DIAGNOSTICS BadAlloc The server failed to allocate the requested resource or server memory. BadWindow A value for a Window argument does not name a defined Window.

SEE ALSO

XAllocClassHint(3x11), XAllocIconSize(3x11), XAllocSizeHints(3x11), XAllocWMHints(3x11), XFree(3x11), XSetCommand(3x11), XSetTransientForHint(3x11), XSetTextProperty(3x11), XSetWMClientMachine(3x11), XSetWMColormapWindows(3x11), XSetWMIconName(3x11), XSetWMProperties(3x11), XSetWMProtocols(3x11), XStringListToTextProperty(3x11)

Xlib - C Language X Interface

ATTRIBUTES

See attributes(5) for descriptions of the following attri-

butes: X Version 11 Last change: libX11 1.3.5 2 XLIB FUNCTIONS XSetWMName(3x11)

____________________________________________________________

| ATTRIBUTE TYPE | ATTRIBUTE VALUE |

|_____________________________|_____________________________|

| Availability | x11/library/libx11 |

|_____________________________|_____________________________|

| Interface Stability | Committed |

|_____________________________|_____________________________|

| MT-Level | See XInitThreads(3X11) |

|_____________________________|_____________________________|

X Version 11 Last change: libX11 1.3.5 3




Contact us      |      About us      |      Term of use      |       Copyright © 2000-2019 MyWebUniversity.com ™