F.4 Window Utility Functions
XmuScreenOfWindow() returns a pointer to the
Screen structure that describes the screen on which
the window was created.
XmuClientWindow() 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. This
is used by window managers.
XmuUpdateMapHints() is a convenience routine
for setting (by applications) and reading (by the window manager) the
XA_WM_NORMAL_HINTS property. It 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.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access