XMREMOVEWMPROTOCOLCALLBACK(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

πŸ’– XmRemoveWMProtocolCallback πŸ’–

okay so bestie, welcome to the library call section of the manual β€” yes the title up top got chopped to XmRemoveWMP...colCallback because apparently manpage headers have no chill, but the full name is right here and it's iconic πŸŽ€

✨ NAME ✨

XmRemoveWMProtocolCallback β€” a VendorShell convenience interface that removes a callback from the internal list 🫢


🌸 SYNOPSIS 🌸

#include <Xm/Xm.h>
#include <Xm/Protocols.h>
void XmRemoveWMProtocolCallback(
Widget shell,
Atom protocol,
XtCallbackProc callback,
XtPointer closure);

like, literally just two includes and one function call, we love a low-effort slay πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

XmRemoveWMProtocolCallback is a convenience interface. no cap. what it actually does is call XmRemoveProtocolCallback, except with the property value set to the atom you get back from interning WM_PROTOCOLS πŸͺ„ so it's the glow-up version where you don't have to do that part yourself, periodt.

here's the tea on the arguments, one by one:

  • shell β€” specifies the widget with which the protocol property is associated 🐚
  • protocol β€” specifies the protocol atom βš›οΈ
  • callback β€” specifies the procedure to call when a protocol message is received πŸ“ž
  • closure β€” specifies the client data to be passed to the callback when it is invoked 🎁

and for a complete definition of VendorShell and its associated resources, go peek at VendorShell(3) β€” it's giving main character reference material πŸ‘‘


the whole friend group fr fr:


ngl this one's short and sweet, but don't skip it β€” if you're adding protocol callbacks you're gonna need the un-add version eventually, iykyk 😭

and that's the whole page babes ✨ it lives in the library call manual, filed under XmRemoveWMP...colCallback (truncated by the formatter, not by me, I would never πŸ’€). stay hydrated, read your VendorShell(3), and go remove some callbacks responsibly πŸ‘‘πŸ’œ