Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!think.com!mintaka!olivea!oliveb!amdahl!JUTS!duts!gjf00 From: gjf00@duts.ccc.amdahl.com (Gordon Freedman) Newsgroups: comp.windows.x.motif Subject: Question on mwm menu/key bindings Message-ID: Date: 18 Apr 91 23:54:34 GMT Sender: netnews@ccc.amdahl.com Reply-To: gjf00@DUTS.ccc.amdahl.com (Gordon Freedman) Organization: Amdahl Corporation, Sunnyvale CA Lines: 56 BACKGROUND: I am running ICS Motif 1.1, on a Sparc IPC with SUNOS 4.1.1, MIT R4 X. I am trying to change the menu selection "acclerator" keys for the top left menu mwm puts in window decorations. Mainly, I am trying to stop the use of MetaF4 from closing the window. Unfortunately, I am more confused than when I started. It seems to indicate in the OSF/Motif Programmer's Reference that you can define your own menu panes (this is right towards the end of the man page for mwm), and in the default .mwmrc that came with our setup there is the section: --------------------- in system.mwmrc ---------------- # Default Window Menu Description Menu DefaultWindowMenu MwmWindowMenu { "Restore" _R AltF5 f.normalize "Move" _M AltF7 f.move "Size" _S AltF8 f.resize "Minimize" _n AltF9 f.minimize "Maximize" _x AltF6 f.maximize "Lower" _L AltF3 f.lower no-label f.separator "Close" _C AltF4 f.kill } ---------------------------------------------------------- I tried unsuccessfully to change the "Close" key from AltF4 to AltF1 but this didn't take effect, even after I restarted mwm. I would like to use Alt rather than Meta for the menu functions, but would be satisfied using different keys than Alt. To further confuse the issue, the Reference man page on mwm says that "Alt and Meta can be used interchangeably in event specifications". (page 1-44 of OSF/Motif Programmer's Reference). My questions are: 1) How do I change the Default Window Menu in mwm, or just change items in the Window Menu being used? 2) Are "Meta" and "Alt" really treated the same by mwm? If so, why don't they both have the same effect (i.e. MetaF4 closes the window, AltF4 does not). I don't have Altanything defined in any of my resource files. Are they the same key, used to specify the same thing, or what? 3) Can I stop mwm from using MetaF4 for close? Can I get it to really use the Alt key instead of Meta (there are both on the Sun type 4 keyboard). Answers to 1) and 2) may also answer this. Thanks in advance, email preferred if possible. -- Gordon Freedman: gjf00@duts.ccc.amdahl.com Disclaimer: My opinions! Not my employers!