Path: utzoo!utgpu!watmath!clyde!att!rutgers!mailrus!tut.cis.ohio-state.edu!bloom-beacon!sparky.UUCP!jdi
From: jdi@sparky.UUCP (John Irwin)
Newsgroups: comp.windows.x
Subject: Re: borders in awm
Message-ID: <8812021933.AA14078@sparky>
Date: 2 Dec 88 19:33:45 GMT
References: <14308@lll-winken.llnl.gov>
Sender: daemon@bloom-beacon.MIT.EDU
Organization: The Internet
Lines: 45

Your message:

    
    Awm uses a Pixmap called "SolidPixmap" for borders of the
    window in focus, and "GreyPixmap" for borders of windows out
    of focus.  SolidPixmap turns out to be black on my setup and
    I have tried messing with resources to get white borders but
    have failed.  Is there a way to get a "SolidPixmap" which is
    white instead of black, but otherwize keep everything else
    the same?  I am willing to mung the code if need be.

--------

There is a bug in awm that prevents the "reverse" option from working.  (It's
used before it's set)  Reverse is what you want.  Here's the fix:

*** awm.c~	Fri Oct 14 11:36:00 1988
--- awm.c	Mon Nov 21 14:20:22 1988
***************
*** 726,731 ****
--- 726,732 ----
       /* Default foreground/background colors (text) */
       Foreground = GetStringRes("foreground", "black");
       Background = GetStringRes("background", "white");
+      Reverse = GetBoolRes("reverse", FALSE);
       
       if (Reverse) { /* Swap the foreground and background */
  	  char *tmp;
***************
*** 755,761 ****
       ShowName = GetBoolRes("showName", TRUE);
       NWindow = GetBoolRes("normalw", TRUE);
       Push = GetBoolRes("pushRelative", FALSE);
-      Reverse = GetBoolRes("reverse", FALSE);
       SaveUnder = GetBoolRes("saveUnder", FALSE);
       Wall = GetBoolRes("wall", FALSE);
       WarpOnRaise = GetBoolRes("warpOnRaise", FALSE);
--- 756,761 ----

Also -- has anyone else had a problem with awm sitting and eating up CPU time?
To keep it from doing that on a sun4/260 (Release 3) I had to make the Iconify
function return leave(TRUE) instead of leave(FALSE) so that awm doesn't loop
waiting for the button to be released.

	-- John