Skip to content

Window Utility Functions

To use the functions defined in this section, you should include the header file <X11/Xmu/WinUtil.h> . To use XmuClientWindow, you may link against either the libXmu or libXmuu libraries. The other functions in this section require linking against the libXmu library.

Screen *XmuScreenOfWindow(Display *dpy, Window w);
Screen *XmuScreenOfWindow(Display *dpy, Window w);

dpy

specifies the connection to the X server

w

specifies the window

This function returns the Screen on which the specified window was created.

Window XmuClientWindow(Display *dpy, Window win);
Window XmuClientWindow(Display *dpy, Window win);

dpy

specifies the connection to the X server

win

specifies the window

This function finds a window, at or below the specified window, which has a WM_STATE property. If such a window is found, it is returned, otherwise the argument window is returned.

Bool XmuUpdateMapHints(Display *dpy, Window w, XSizeHints *hints);
Bool XmuUpdateMapHints(Display *dpy, Window w, XSizeHints *hints);

dpy

specifies the connection to the X server

win

specifies the window

hints

specifies the new hints, or NULL

This function clears the PPosition and PSize flags and sets the USPosition and USSize flags in the hints structure, and then stores the hints for the window using XSetWMNormalHints and returns True. If NULL is passed for the hints structure, then the current hints are read back from the window using XGetWMNormalHints and are used instead, and True is returned; otherwise False is returned.