[11512] in Athena Bugs
Mwm should allow the same button to maximize and normalize a window
daemon@ATHENA.MIT.EDU (Jonathan I. Kamens)
Thu Dec 9 08:56:11 1993
Date: Thu, 9 Dec 1993 08:56:22 -0500
From: "Jonathan I. Kamens" <jik@security.ov.com>
To: bugs@MIT.EDU
Mwm should allow the same button sequence (e.g., "Meta Shift
<Btn2Down>") to both maximize a window and normalize it. Right now,
the two functions are distinct, which means that have to be assigned
to different button sequences.
Twm handles this by making f.fullzoom, f.zoom, etc., toggles,
so that if you try to maximize a window that's already maximized, it
normalizes it. Mwm could do the same thing, or could add an
f.maximize_or_normalize function that behaves as Twm's functions
behave now.
Another option would be to modify the .mwmrc file format in
one of two possible ways:
1) Add "maximized-window" and "normal-window" (or some similar
keywords that mean the same thing) as two legal contexts, so that I
can do a button binding that will work only on a maximized window and
another button binding, for the same button sequence, that will work
only on a normal-sized window.
2) Allow a button binding to include multiple functions at the end of
the binding, and execute all that are relevant in the context in which
the binding was triggered. I could then include f.maximize and
f.normalize on the same binding, and only one of them would be
executed on any single triggering of the binding.
Jonathan Kamens | OpenVision Technologies, Inc. | jik@security.ov.com