1. NAME

XSetTransientForHint, XGetTransientForHint - set or read a window's WM_TRANSIENT_FOR property

2. SYNTAX

int XSetTransientForHint(Display *display, Window w, Window prop_window); Status XGetTransientForHint(Display *display, Window w, Window *prop_window_return);

3. ARGUMENTS

display 1i Specifies the connection to the X server.

w 1i Specifies the window.

prop_window 1i Specifies the window that the WM_TRANSIENT_FOR property is to be set to.

prop_window_return 1i Returns the WM_TRANSIENT_FOR property of the specified window.

4. DESCRIPTION

The .ZN XSetTransientForHint function sets the WM_TRANSIENT_FOR property of the specified window to the specified prop_window.

.ZN XSetTransientForHint can generate .ZN BadAlloc and .ZN BadWindow errors.

The .ZN XGetTransientForHint function returns the WM_TRANSIENT_FOR property for the specified window. It returns a nonzero status on success; otherwise, it returns a zero status.

.ZN XGetTransientForHint can generate a .ZN BadWindow error.

5. PROPERTIES

  • \s-1WM_TRANSIENT_FOR\s+1
     Set by application programs to indicate to the window manager that a transient top-level window, such as a dialog box.

6. DIAGNOSTICS

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

7. SEE ALSO