wang@pyr.csuhayward.EDU (Hong Wang) (03/12/91)
Hello, everyone: I am a new subscriber of xpert list, and really appreciate all pieces of information I've got so far. But, here I've got a question regarding the root menu of Motif window manager, mwm. I'm using mwm on X11 R3 running on Sun 3 workstations, which are running Sun OS 4.1. I've had my own customized startup file .mwmrc, resource file .Xdefaults in my home directory. Root menu and window menu are defined in .mwmrc. The mwm is brought up by xinit command with .xinitrc file. When mwm is running, I can pop up the window menu on xterm windows. Contrastingly, I can't get the root menu on root window. Another problem is that the customized window menu doesn't come up. Instead, the window menu defined in the systemwide startup file system.mwmrc keeps coming up. It seems that .mwmrc does not have any effects when mwm is come up. When mwm is coming up, there's an error message showing on the console window, saying "mwm: Invalid accelerator specification on line 7 of specification string". I don't know if not getting root menu has some thing to do with this error or not. Could anyone give me some suggestions? Any clue will be appreciated. Hong Wang wang@pyr.csuhayward.edu
dbrooks@osf.org (David Brooks) (03/14/91)
wang@pyr.csuhayward.EDU (Hong Wang) writes: |> |> I'm using mwm on X11 R3 running on Sun 3 workstations, which are running |> Sun OS 4.1. I've had my own customized startup file .mwmrc, resource |> file .Xdefaults in my home directory. Root menu and window menu are defined |> in .mwmrc. The mwm is brought up by xinit command with .xinitrc file. |> |> When mwm is running, I can pop up the window menu on xterm windows. |> Contrastingly, I can't get the root menu on root window. Another problem |> is that the customized window menu doesn't come up. Instead, the window |> menu defined in the systemwide startup file system.mwmrc keeps coming |> up. It seems that .mwmrc does not have any effects when mwm is come up. First, mwm has to know about your .mwmrc, so make sure the resource Mwm*configFile is pointing at the right filename. Use "*", not ".". Next, the Mwm resources *buttonBindings and *keyBindings should have some string value. These strings should map to button and key tables in the .mwmrc. There should be an entry in these buttonBindings something like: <Btn1Down> root f.menu RootMenu Finally, the menu RootMenu should also be defined in your .mwmrc. |> When mwm is coming up, there's an error message showing on the console |> window, saying "mwm: Invalid accelerator specification on line 7 of |> specification string". I don't know if not getting root menu has some |> thing to do with this error or not. Sun 3 which doesn't have a F10 key, or whose server doesn't call it F10, right? Make sure your KeyBindings, and the accelerators on various menus, don't mention F10 (the default does, unfortunately). -- David Brooks dbrooks@osf.org Systems Engineering, OSF uunet!osf.org!dbrooks "It's not easy, but it is simple."