FVWM: Updated CleverPlacement and stuff.

From: Anthony Martin <amartin_at_engr.csulb.edu>
Date: Sat, 26 Oct 1996 01:22:42 -0700 (PDT)

I made a couple of one-liner speed optimizations suggested by Dan
Astoorian to CleverPlacement. I doubt that anyone will notice anything.
If placement was instantaneous before, it is still instantaneous, but I
suppose that there are extreme cases where placement time could be
measurable (many many windows on slow computer). In any case, the new
CleverPlacement should be faster than the old SmartPlacement. It is at:
http://www.engr.csulb.edu/~amartin/placement.c

I received a report that CleverPlacement works fine with fvwm95 with only
a header file change. I have been trying to get the source for the latest
fvwm95, but the home page seems to be down. Is it still at this location?
http://ltiwww.epfl.ch/~barth/fvwm95.html

There is a bug somewhere in fvwm that sometimes causes it to subtract 1
from the x and y values returned by SmartPlacement/CleverPlacement. This
bug has been there for a very long time and is unrelated to the new
CleverPlacement code. If your first window starts at -1,-1 instead of 0,0
then I suggest changing your placement line as follows:

Style "*" SmartPlacement, ActivePlacement

This seems to suppress the bug as far as I can tell. If you want to
verify that there is a bug, try the two sample.fvwmrc files distributed
with fvwm-2. One of these files exposes the bug, the other doesn't. I
started looking for the cause of this bug, which I think is in placement.c
(the part I didn't touch), but the code is so confusing, I gave up.
Perhaps someone else has an idea.

Tony.





--
Visit the official FVWM web page at <URL:http://www.hpc.uh.edu/fvwm/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_hpc.uh.edu.
To report problems, send mail to fvwm-owner_at_hpc.uh.edu.
Received on Sat Oct 26 1996 - 03:23:00 BST

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:37:59 BST