decoration to be disabled.
MWM_FUNC_CLOSE
This value enables the Close menu item. Disabling this item does not affect the window manager decorations
for the window.
MWM_FUNC_ALL
This value causes all of the standard items in the menu to be displayed and all the default functionality of the
window manager to work.
It is important to remember that the user can specify these window menu functions, as well as new functions,
in an .mwmrc file. (See Volume Three, X Window System User's Guide, Motif Edition.) While your settings
override any user specifications, you should only modify the window menu functions if it is absolutely
necessary. A common misuse of this functionality is to disable the Close button. We strongly discourage
disabling this button, as users expect it to be in the window menu. Rather than disable the button, you should
link its functionality to another control in your application that has the same meaning. For example, if you are
using a standard Motif dialog that provides OK and Cancel buttons, you can link the Close menu item to the
Cancel button. We explain how to connect the functionality of these components in the next section.
17.4 Handling Window Manager Messages
A protocol is a set of rules that governs communication and data transfer. When the window manager sends a message
to an application that follows a predefined protocol, the client application should respond accordingly. The ICCCM
defines a number of protocols for window managers and applications to follow. One such ...