XMSETWMPROTOCOLHOOKS(3)

πŸ“¦
version 2.5.2 Β· 2 versions
, in alpine 3.24, arch rolling, centos-stream 9, epel 10, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0

✨ NAME ✨

okay so bestie, this is XmSetWMProtocolHooks β€” and yes, it's a library call manual page. It's a VendorShell convenience interface that allows preactions and postactions to be executed when a protocol message is received from the window manager. no cap. 🫢


🌸 SYNOPSIS 🌸

#include <Xm/Xm.h>
#include <Xm/Protocols.h>
void XmSetWMProtocolHooks(
       Widget shell,
       Atom protocol,
       XtCallbackProc prehook,
       XtPointer pre_closure,
       XtCallbackProc posthook,
       XtPointer post_closure);

πŸ’… DESCRIPTION πŸ’…

XmSetWMProtocolHooks is literally a convenience interface. It calls XmSetProtocolHooks with the property value set to the atom returned by interning WM_PROTOCOLS. periodt.

  • shell β€” specifies the widget with which the protocol property is associated. main character widget energy, fr fr.
  • protocol β€” specifies the protocol atom (or an int cast to Atom). yes bestie, an int cast to Atom is a thing, iykyk.
  • prehook β€” specifies the procedure to call before calling entries on the client callback list.
  • pre_closure β€” specifies the client data to be passed to the prehook when it is invoked.
  • posthook β€” specifies the procedure to call after calling entries on the client callback list.
  • post_closure β€” specifies the client data to be passed to the posthook when it is invoked.

For a complete definition of VendorShell and its associated resources, see VendorShell(3). πŸ’–



πŸ’– XmSetWMProtocolHooks(library call) β€” that's the footer, bestie. source/version: the manual name; date: not listed. slay. πŸ’