XMACTIVATEPROTOCOL(3)
β¨ NAME β¨
XmActivateProtocol β a VendorShell function that activates a protocol, bestie π
πΈ SYNOPSIS πΈ
#include <Xm/Protocols.h>
void XmActivateProtocol(
Widget shell,
Atom property,
Atom protocol);
π DESCRIPTION π
Okay so XmActivateProtocol does exactly what it says on the tin: it activates a protocol. If the shell is realized, it goes ahead and updates the handlers and the property. Slay π
Now here's the tea, because this part is lowkey iconic: sometimes it's genuinely useful to let a protocol's state info β like callback lists, and so on β just persist, even though the client might decide to temporarily resign from the interaction. Main character energy, honestly. And how is that supported? By letting a protocol live in one of two states: active or inactive π¦
- If the protocol is active and the shell is realized, the property contains the protocol Atom. β¨
- If the protocol is inactive, the Atom is not present in the property. π
Also, not me needing to tell you that XmActivateWMProtocol is a convenience interface π«Ά It calls XmActivateProtocol with the property value set to the atom returned by interning WM_PROTOCOLS. Periodt.
π Arguments, babes
shellβ Specifies the widget with which the protocol property is associated.propertyβ Specifies the protocol property.protocolβ Specifies the protocol Atom.
And for a complete definition of VendorShell and its associated resources, see VendorShell(3). Iykyk π
π§ RELATED π§
VendorShell(3), XmActivateWMProtocol(3), XmRemoveProtocols(3) and XmInternAtom(3) β go read them too, they're all part of the same little family π
and that's the whole page, bestie! this was XmActivateProtocol, a library call from section 3 of the manual β mwah, go activate something, you're gonna ate πππ
π¦ 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