On 18 May 2002 17:35:41 -0500, David Fries wrote:
>
> I made a patch and put up a web page (patch included).
> http://fries.net/~david/fvwm/
>
> I noticed that a good number of the programs out there list the name
> of the program as the last word on their title. I wanted a way to
> group programs in the WindowList. The Alphabetic option to WindowList
> can't do this since it always starts at the beginning of the title, so
> I added an option SortLastWord which when used with the Alphabetic
> option will sort the entries based on the last word and then start at
> the front if the last word matches.
Well, you may already separate applications (and sorts them) depending on
their patterns using FvwmIconMan. See also FvwmIconMan Transient option.
Another note, other WindowList boolean options don't have their opposites,
so NotSortLastWord (a better name is SortLastWordOff) is not needed.
> The patch is applied against today's fvwm CVS tree. I do have a
> couple questions. I used the variable pscratch in the WindowList, but
> I wasn't sure if I had to do anything special becides freeing the
> memory before I exited, or do I need to zero it last?
It is better to avoid hacks, but it seems that pscratch usage is ok here.
> What's the difference between safemalloc and malloc and do I need to
> check to see if it succeeded?
This is a difference, you don't need to check its status.
> Does it sound reasonable to require Alphabetic to use SortLastWord?
Not to me. Most of programs (all that I use) don't put their name at the
end, some put it at the beginning. This would break Alphabetic completely.
> If someone could answer my questions I'll attack the gtk version as
> well as the fvwm man page and then submit it again.
If you mean FvwmGtk, it is currently broken in cvs, but there is also
FvwmWinList. :-)
Post new patches to fvwm-workers. Quoting old patches is not needed.
Regards,
Mikhael.
--
Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_fvwm.org.
To report problems, send mail to fvwm-owner_at_fvwm.org.
Received on Sat May 18 2002 - 20:24:54 BST