1XSetTransientForHint(3) XLIB FUNCTIONS XSetTransientForHint(3)
2
3
4
6 XSetTransientForHint, XGetTransientForHint - set or read a window's
7 WM_TRANSIENT_FOR property
8
10 int XSetTransientForHint(Display *display, Window w, Window prop_win‐
11 dow);
12
13 Status XGetTransientForHint(Display *display, Window w, Window
14 *prop_window_return);
15
17 display Specifies the connection to the X server.
18
19 w Specifies the window.
20
21 prop_window
22 Specifies the window that the WM_TRANSIENT_FOR property is to
23 be set to.
24
25 prop_window_return
26 Returns the WM_TRANSIENT_FOR property of the specified win‐
27 dow.
28
30 The XSetTransientForHint function sets the WM_TRANSIENT_FOR property of
31 the specified window to the specified prop_window.
32
33 XSetTransientForHint can generate BadAlloc and BadWindow errors.
34
35 The XGetTransientForHint function returns the WM_TRANSIENT_FOR property
36 for the specified window. It returns a nonzero status on success; oth‐
37 erwise, it returns a zero status.
38
39 XGetTransientForHint can generate a BadWindow error.
40
42 WM_TRANSIENT_FOR
43 Set by application programs to indicate to the window manager
44 that a transient top-level window, such as a dialog box.
45
47 BadAlloc The server failed to allocate the requested resource or
48 server memory.
49
50 BadWindow A value for a Window argument does not name a defined Window.
51
53 XAllocClassHint(3), XAllocIconSize(3), XAllocSizeHints(3), XAl‐
54 locWMHints(3), XSetCommand(3), XSetTextProperty(3), XSetWMClientMa‐
55 chine(3), XSetWMColormapWindows(3), XSetWMIconName(3), XSetWMName(3),
56 XSetWMProperties(3), XSetWMProtocols(3), XStringListToTextProperty(3)
57 Xlib - C Language X Interface
58
59
60
61X Version 11 libX11 1.8.1 XSetTransientForHint(3)