Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!decwrl!ucbvax!flopn2.csc.ti.com!dbeck From: dbeck@flopn2.csc.ti.com (Dave Beck) Newsgroups: comp.windows.x.motif Subject: app-defaults resources Message-ID: <9105231935.AA22412@tilde> Date: 23 May 91 19:35:00 GMT Sender: daemon@ucbvax.BERKELEY.EDU Distribution: inet Organization: The Internet Lines: 32 I am trying to move some application resources from my .Xdefaults to an app-defaults file, and getting strange results. Mwm has default behavior of a mouse 3 click popping up a window menu (usually the default one with Minimize, Maximize, Close, etc). I have an application menu I defined in .mwmrc called SSTop_Menu. When I have in my .Xdefaults the line *SmartShell*windowMenu: SSTop_Menu I see my application menu as expected on a mouse 3 click. But when I moved the line to $HOME/app-defaults/SmartShell, I get the default window menu instead. Now I know it's getting to the app-defaults file because of other resources I've set there (colors, etc). I also tested an arbitrary resource there and used XtGetApplicationResources to check it. Mwm sees the file, just won't set the menu correctly. My understanding was that resources defaulting looks first at .Xdefaults, then user app-defaults files, then system app-defaults files. I've looked through all the FMs, and as near as I can figure out the way most mwm resources are through a configFile resource on the ApplicationShell widget. It points to a resource file that in most cases is .mwmrc. The windowMenu resource doesn't seem to attach directly to any classes, so I can't do an XtSetArg for it. I have tried specifying the windowMenu in .mwmrc as well as in the app-defaults file. I've tried Mwm*SmartShell*windowMenu (what the FM says should work) and other variations with no luck. Does anyone know what's happening or have any suggestions? This is Motif 1.1, X11R4 on a Sparc 1+. Please e-mail directly. Dave Beck dbeck@flopn2.csc.ti.com Software Systems & Applications Lab Texas Instruments