toml@ninja.Solbourne.COM (Tom LaStrange) (12/22/89)
I have a couple of questions about the Motif _MOTIF_WM_HINTS property.
1. The definition of the property in the MWM programmers guide is
different from the definition in MwmUtil.h. I assume the header
file contains the proper definition:
typedef struct
{
CARD32 flags;
CARD32 functions;
CARD32 decorations;
INT32 inputMode;
} PropMotifWmHints;
Is my assumption correct? Are there any other differences between the
documentation and the code that I should be aware of? I can't UTSL,
all I have are binaries and header files.
2. I only see this property set on transient windows and it never seems
to make any sense. Often times it appears that I am just getting
uninitialized memory. I have never seen decorations or functions
specified, yet the decorations that mwm places on transients is
different than what is used on normal windows. Does mwm use this
property to determine what decoration to place on windows or am I
seeing a default transient decoration?
3. It might be nice if this property were placed on all windows that
are created by the motif toolkit, not just windows that require
different decorations. That way, a configurable window manager
could provide mwm decoration on motif clients or Open Look decoration
on Open Look clients. Current Open Look clients, at least those
built with xview or OI, place an _OL_WIN_ATTR property on all
reparentable windows. This property is similar to _MOTIF_WM_HINTS.
Thanks,
Tom LaStrange
Solbourne Computer Inc. ARPA: toml@Solbourne.COM
1900 Pike Rd. UUCP: ...!{boulder,sun}!stan!toml
Longmont, CO 80501
toml@ninja.Solbourne.COM (Tom LaStrange) (12/28/89)
I got zero, nada, none, zip, no responses to this note that I posted
last week, other than the one saying that they would forward it to some OSF
mailing list. So I'll try again. Any OSF people out there listening?
I have a couple of questions about the Motif _MOTIF_WM_HINTS property.
1. The definition of the property in the MWM programmers guide is
different from the definition in MwmUtil.h. I assume the header
file contains the proper definition:
typedef struct
{
CARD32 flags;
CARD32 functions;
CARD32 decorations;
INT32 inputMode;
} PropMotifWmHints;
Is my assumption correct? Are there any other differences between the
documentation and the code that I should be aware of? I can't UTSL,
all I have are binaries and header files.
2. I only see this property set on transient windows and it never seems
to make any sense. Often times it appears that I am just getting
uninitialized memory. I have never seen decorations or functions
specified, yet the decorations that mwm places on transients is
different than what is used on normal windows. Does mwm use this
property to determine what decoration to place on windows or am I
seeing a default transient decoration?
3. It might be nice if this property were placed on all windows that
are created by the motif toolkit, not just windows that require
different decorations. That way, a configurable window manager
could provide mwm decoration on motif clients or Open Look decoration
on Open Look clients. Current Open Look clients, at least those
built with xview or OI, place an _OL_WIN_ATTR property on all
reparentable windows. This property is similar to _MOTIF_WM_HINTS.
Thanks,
Tom LaStrange
Solbourne Computer Inc. ARPA: toml@Solbourne.COM
1900 Pike Rd. UUCP: ...!{boulder,sun}!stan!toml
Longmont, CO 80501
gabe@hpcvlx.cv.hp.com (Gabe Begeddov) (12/29/89)
/ hpcvlx:comp.windows.x / toml@ninja.Solbourne.COM (Tom LaStrange) / 6:56 am Dec 28, 1989 / I got zero, nada, none, zip, no responses to this note that I posted last week, other than the one saying that they would forward it to some OSF mailing list. So I'll try again. Any OSF people out there listening? Would you believe a holiday backlog? No, well how about my mailer ate it? ... I have a couple of questions about the Motif _MOTIF_WM_HINTS property. 1. The definition of the property in the MWM programmers guide is different from the definition in MwmUtil.h. I assume the header file contains the proper definition: Yes. Is my assumption correct? Are there any other differences between the documentation and the code that I should be aware of? I can't UTSL, all I have are binaries and header files. I have the code but can't find my documentation :-). 2. I only see this property set on transient windows and it never seems to make any sense. The properties are only used (by an Xm client) when the related resources of VendorShell are set (XmNdecorations, XmNfunctions, XmNinputMode). This is done by default by dialogs (top-level subclasses of XmBulletinBoard) in order to control whether a resize button is displayed (see XmNnoResize resource of XmBulletinBoard). Fields that aren't set should have a value of -1 which is only used for client side comparisons since Mwm first checks the flags field. Mwm only honors settings in the property that are a subset of those specified for the relavent Mwm resource. Client windows (top-level) and transient windows (windows with a TRANSIENT_FOR property) use different resources i.e. XmNclientDecorations and XmNtransientDecorations which also have different default value. These resources are MWM resources while the ones in the preceding paragraph are client side resources. See XmNVendorShell and the Motif Window Manager Configuration Guide for more information. 3. It might be nice if this property were placed on all windows that are created by the motif toolkit, not just windows that require different decorations. This is a reasonable request. If you were a Motif source licensee you could make a direct request for this kind of capability and also UTSL. Thanks, Tom LaStrange Happy Sylvester (aka New Year), Gabe Beged-Dov HP Interface Technology Operation