XSetTransientForHint(3)
okay so bestie, this is XSetTransientForHint(3) from the XLIB FUNCTIONS manual, and weβre doing a vibe check on a windowβs WM_TRANSIENT_FOR property πβ¨ itβs giving βset it or read it,β and honestly? iconic.
π NAME π
XSetTransientForHint, XGetTransientForHint β set or read a windowβs WM_TRANSIENT_FOR property ππ«Ά
π οΈ SYNTAX π οΈ
int XSetTransientForHint(Display *display, Window w, Window
prop_window);
Status XGetTransientForHint(Display *display, Window w, Window
*prop_window_return);
πΈ ARGUMENTS πΈ
displayβ specifies the connection to the X server, aka your link to the server bestie πwβ specifies the window πprop_windowβ specifies the window that theWM_TRANSIENT_FORproperty is to be set to πͺprop_window_returnβ returns theWM_TRANSIENT_FORproperty of the specified window π«Ά
β¨ DESCRIPTION β¨
The XSetTransientForHint function sets the WM_TRANSIENT_FOR property of the specified window to the specified prop_window. Thatβs the main character move, periodt π
XSetTransientForHint can generate BadAlloc and BadWindow errors. Ngl, noted.
The 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. So nonzero = slay, zero = the plot twist said βnoβ π
XGetTransientForHint can generate a BadWindow error.
π¦ PROPERTIES π¦
WM_TRANSIENT_FORβ Set by application programs to indicate to the window manager that a transient top-level window, such as a dialog box. Yes, thatβs the whole sentence fr fr π
π DIAGNOSTICS π
BadAllocβ The server failed to allocate the requested resource or server memory. Server memory said βnot todayβ ππBadWindowβ A value for aWindowargument does not name a definedWindow. That window is not giving defined-window energy, bestie π
π SEE ALSO π
XAllocClassHint(3), XAllocIconSize(3), XAllocSizeHints(3), XAllocWMHints(3), XSetCommand(3), XSetTextProperty(3), XSetWMClientMachine(3), XSetWMColormapWindows(3), XSetWMIconName(3), XSetWMName(3), XSetWMProperties(3), XSetWMProtocols(3), XStringListToTextProperty(3)
And the big one: Xlib - C Language X Interface ππ
footer sign-off, bestie: X Version 11 Β· libX11 1.8.14 Β· XSetTransientForHint(3) π«Άβ¨
π¦ where this page comes from
- alpine 3.24: libx11-doc 1.8.14-r0 Β· X11
- arch rolling: libx11 1.8.14-1 Β· MIT AND X11
- nixos 26.05: libx11 1.8.14
- nixpkgs unstable: libx11 1.8.14
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms