gjf00@duts.ccc.amdahl.com (Gordon Freedman) (04/19/91)
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
Meta<Key>F4 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 Alt<Key>F5 f.normalize
"Move" _M Alt<Key>F7 f.move
"Size" _S Alt<Key>F8 f.resize
"Minimize" _n Alt<Key>F9 f.minimize
"Maximize" _x Alt<Key>F6 f.maximize
"Lower" _L Alt<Key>F3 f.lower
no-label f.separator
"Close" _C Alt<Key>F4 f.kill
}
----------------------------------------------------------
I tried unsuccessfully to change the "Close" key from Alt<Key>F4 to Alt<Key>F1
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. Meta<Key>F4 closes the window,
Alt<Key>F4 does not). I don't have Alt<Key>anything 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 Meta<Key>F4 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!