Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!thunder.mcrcim.mcgill.edu!snorkelwacker.mit.edu!usc!wuarchive!uunet!infonode!ingr!b11! From: doyle@doyled.ingr.com (Doyle C. Davidson) Newsgroups: comp.windows.x.motif,ingr.x Subject: Re: Setting win decoration from within an app. Message-ID: <1991Feb25.200551.2832@b11.ingr.com> Date: 25 Feb 91 20:05:51 GMT References: <1991Feb18.171524.104@infonode.ingr.com> <1991Feb20.144320.11503@b11.ingr.com> <1991Feb20.224243.11927@b11.ingr.com> <1991Feb21.152742.7966@b11.ingr.com> Sender: @b11.ingr.com Reply-To: ingr!doyle Organization: IntergraphCorporation - Third Party Software Lines: 58 >>>>I want to be able to create some windows running under mwm, and have no >>>>borders placed on the window at all by mwm. I want to perform this >>>>function from within the app, instead of using the "clientDecoration: >>>>none" in the user's resource file. >>> >>See "/usr/include/Xm/MwmUtil.h" >>specifically MWM_DECOR_* > >>Doyle C. Davidson > > >In addition to Doyle's reference, I found some other docs on this subject. >Take a look in the OSF/Motif Programmer's manual at Chapter 12, Section 3. And now, some example code: ============================ cut here ============================ #include /************************************************************************ * * SetMwmHints * ************************************************************************/ static void SetMwmHints(dpy, win, hints) Display *dpy; Window win; MotifWmHints *hints; { PropMwmHints prop; Atom mwm_hints_atom; mwm_hints_atom = XInternAtom(dpy, _XA_MWM_HINTS, False); prop.flags = hints->flags; prop.functions = hints->functions; prop.decorations = hints->decorations; prop.inputMode = hints->input_mode; XChangeProperty (dpy, win, mwm_hints_atom,mwm_hints_atom, 32, PropModeReplace, (unsigned char *) &prop, PROP_MWM_HINTS_ELEMENTS); } ============================ end here ============================ Doyle ------------------------------------------------------------------ Doyle C. Davidson | Intergraph Corp. | These comments are... Everywhere You Look!! | Third Party Software | Product Development | \\ / (205) 730-2000 | \\/ | /\\ clusively my own. ..!b23b!doyled!doyle -or- | / \\ ..!uunet!ingr!doyle | ------------------------------------------------------------------