[comp.windows.x] Awm enhancements/version number.

jonnyg@aardvark.umd.EDU (Jon Greenblatt) (03/29/89)

	I am using AWM from the awm2.tar.Z file on expo. It seems this is
version 1.3 where as the older version from the distribution archive is
version 1.5. The only way to tell which is newer is to look at the revision
history. It seems TWM has the same version number problem. I don't like to
complain but I thought I would point this out in case other people are
having problems with this.

	AWM does not draw the grid box in a reasonable color for resize/move
operations on a color monitor. It is my opinion, I may be wrong, that GXxor
operations should only effect the first plane when drawing these types of
grid boxes. Right now I get a bearly visible yellow grid over white windows.
What I have done is changed this to use the first plane only and the result
is much more visible.
Here is the fix (the DRAW_PLANES value is confusing here and was not used):

*** awm.h.bak	Wed Feb 22 09:53:02 1989
--- awm.h	Tue Mar 28 09:30:04 1989
***************
*** 145,151 ****
  #define MAX_BOX_VECTORS		20
   
  #define DRAW_WIDTH		0 	/* use fastest hardware draw */
! #define DRAW_VALUE		0xfd
  #define DRAW_FUNC		GXxor
  #define DRAW_PLANES		1
  
--- 145,151 ----
  #define MAX_BOX_VECTORS		20
   
  #define DRAW_WIDTH		0 	/* use fastest hardware draw */
! #define DRAW_VALUE		0x1
  #define DRAW_FUNC		GXxor
  #define DRAW_PLANES		1
  

	I have found one other problem with awm that I have not been able to
fix thus far.  When selecting the Resize Gadget, awm assumes you are
resizing the upper right corner instead of letting you select the
edge/corner you wish to resize as with the f.resize operator.  In order to
fix the operation of the of the resize box, resizing might have to be
handled differently.  TWM does not have this problem but it handles resizing
completely differently.  Any suggestions?

	BTW My favorite window manager is UWM. I have recently taken interest
in TWM and AWM because I find they would be helpful in reducing the users
learning curve in a lab situation where they may only use X Windows for
a couple of projects. I find TWM to be the nicest in terms of both look and
feal. I have found AWM to be the most functional and much more robust. Since
TWM seems to ignore a lot of window manager hints, I find it to be somewhat
annoying to use. My choice for users is to run AWM but configure it as a
best I can as a UWM/TWM window manager. Since AWM alows you to configure it as
both a UWM and TWM look/feel alike it is the most versital. The main drawback
of AWM thought is the fact that it is so large, thats what happens when you
try to do everything.

						JonnyG.
					(jonnyg@rover.umd.edu)
					(jonnyg@umd5.umd.edu)

jkh@pcsbst.UUCP (jkh) (04/02/89)

>	I am using AWM from the awm2.tar.Z file on expo. It seems this is
>version 1.3 where as the older version from the distribution archive is
>version 1.5. The only way to tell which is newer is to look at the revision
>history.

This is incorrect. For at least a year now, awm's status has been
determined solely by its patch level. Since different source files are
checked in and out of RCS at each patch, it's impossible to judge
the "revision status" of awm as a whole by looking at one file, whether
or not it's "awm.c". The revision level of a particular file is only useful
for reporting bugs, and even then only in some cases. Look at patchlevel.h
for the real scoop on what you're running. Current patch level is 9.

>	AWM does not draw the grid box in a reasonable color for resize/move
>operations on a color monitor. It is my opinion, I may be wrong, that GXxor
>operations should only effect the first plane when drawing these types of
>grid boxes.

Thanks, I'll look these patches over. If they work fine on our color
system(s) (and Ardent's of course), they'll go into patch 10.

>	I have found one other problem with awm that I have not been able to
>fix thus far.  When selecting the Resize Gadget, awm assumes you are
>resizing the upper right corner instead of letting you select the
>edge/corner you wish to resize as with the f.resize operator.

This has been fixed by adding "constrained resize" Ala twm. I.E. Window
resizing does not start taking place until the cursor has left the
boundries of the window, allowing you to move it to any given anchor
point first.

This brings up a second point, which is that I'd be a lot happier if
people would just send such stuff to awm-bugs@ardent.ardent.com, or
to me (either way, it gets looked at properly). The proper addresses
are in the README file. Jon's complaint about version numbers is only
made worse by a lot of loose uncoordinated patches floating around, some
of which may break the "official" patches that I send out. Things are
already confusing enough with the two divergent releases already out there
(the R3 release and the recent comp.sources.x release, which I hope is
the "awm2.tar.Z file on expo).

Patch #10 will be released soon, so I'd suggest refraining from applying
Jon's patch (or at least keeping the original awm.h around) as it will
be included if it works properly.


		Thanks..