1XmSetWMProtocolHooks(library call) XmSetWMProtocolHooks(library call)
2
3
4
6 XmSetWMProtocolHooks — A VendorShell convenience interface that allows
7 preactions and postactions to be executed when a protocol message is
8 received from the window manager
9
11 #include <Xm/Xm.h>
12 #include <Xm/Protocols.h>
13 void XmSetWMProtocolHooks(
14 Widget shell,
15 Atom protocol,
16 XtCallbackProc prehook,
17 XtPointer pre_closure,
18 XtCallbackProc posthook,
19 XtPointer post_closure);
20
22 XmSetWMProtocolHooks is a convenience interface. It calls XmSetProto‐
23 colHooks with the property value set to the atom returned by interning
24 WM_PROTOCOLS.
25
26 shell Specifies the widget with which the protocol property is
27 associated
28
29 protocol Specifies the protocol atom (or an int cast to Atom)
30
31 prehook Specifies the procedure to call before calling entries on the
32 client callback list
33
34 pre_closure
35 Specifies the client data to be passed to the prehook when it
36 is invoked
37
38 posthook Specifies the procedure to call after calling entries on the
39 client callback list
40
41 post_closure
42 Specifies the client data to be passed to the posthook when
43 it is invoked
44
45 For a complete definition of VendorShell and its associated resources,
46 see VendorShell(3).
47
49 VendorShell(3), XmInternAtom(3), and XmSetProtocolHooks(3).
50
51
52
53 XmSetWMProtocolHooks(library call)