XMDEACTIVATEPROTOCOL(3)
π XmDeactivateProtocol π
okay bestie, welcome to the XmDeactivateProtocol page from the library-call section of the manual. she's a VendorShell function and she's about to ghost a protocol β but like, soft-ghost. not a block. just a lil' "not right now" β¨
πΈ NAME πΈ
XmDeactivateProtocol β a VendorShell function that deactivates a protocol without removing it π
π¦ SYNOPSIS π¦
#include <Xm/Xm.h>
#include <Xm/Protocols.h>
void XmDeactivateProtocol(
Widget shell,
Atom property,
Atom protocol);
β¨ DESCRIPTION β¨
so XmDeactivateProtocol deactivates a protocol without removing it. she does not delete it, she does not throw it away, she just sets it to inactive, iykyk. π
she updates the handlers and the property if the shell is realized. (realized shell = we're doing this for real, not just vibing in theory π«Ά)
the way that this is useful: sometimes you wanna let a protocol's state information keep existing β callback lists, and so on, all of it β even though the client may choose to temporarily resign from the interaction. it's giving "we're on a break, not broken up." π
the main use of this capability is to gray/ungray f.send_msg entries in the MWM system menu. π
to support this, protocol is allowed to be in one of two states: active or inactive.
- if
protocolis active andshellis realized,propertycontains the protocol Atom. β - if
protocolis inactive, the Atom is not present in theproperty. π«
alsooo, XmDeactivateWMProtocol is a convenience interface. she's the low-effort bestie who just calls XmDeactivateProtocol with the property value set to the atom returned by interning WM_PROTOCOLS. no cap, that's literally all she does. π
π the arguments π
shellβ specifies the widget with which the protocol property is associated. the main character of this whole situation. πpropertyβ specifies the protocol property. πprotocolβ specifies the protocol atom. β
for a complete definition of VendorShell and its associated resources, see VendorShell(3). π
π RELATED π
go read these next, bestie, they're all connected fr fr:
and that's the whole vibe πΈ this was the XmDeactivateProtocol page from the library-call manual β no date on this one, she's timeless like that π
β¨ mwah, go deactivate something responsibly π«Άπ
π¦ where this page comes from
- alpine 3.24: motif-doc 2.5.2-r0 Β· LGPL-2.1-or-later
- arch rolling: openmotif 2.3.8-4 Β· LGPL-2.1-or-later
- centos-stream 9: motif-devel 2.3.4-32.el9 Β· LGPLv2+
- centos-stream 9: motif-devel 2.3.4-32.el9 Β· LGPLv2+
- epel 10: motif-devel 2.3.8-2.el10_2 Β· LicenseRef-Callaway-LGPLv2+
- fedora 43: motif-devel 2.3.8-1.fc43 Β· LicenseRef-Callaway-LGPLv2+
- fedora 43: motif-devel 2.3.8-1.fc43 Β· LicenseRef-Callaway-LGPLv2+
- fedora 43: motif-devel 2.3.8-2.fc43 Β· LicenseRef-Callaway-LGPLv2+
- fedora 43: motif-devel 2.3.8-2.fc43 Β· LicenseRef-Callaway-LGPLv2+
- fedora 44: motif-devel 2.3.8-3.fc44 Β· LicenseRef-Callaway-LGPLv2+
- fedora 44: motif-devel 2.3.8-3.fc44 Β· LicenseRef-Callaway-LGPLv2+
- nixos 26.05: motif 2.3.8
- nixpkgs unstable: motif 2.3.8
- opensuse-leap 16.0: motif-devel 2.3.8-bp160.1.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: motif-devel 2.3.8-bp160.1.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: motif-devel 2.3.8-bp160.1.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: motif-devel 2.3.8-bp160.1.1 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms