Re: FVWM: WindowList with very long titles

From: Dominik Vogt <dominik.vogt_at_gmx.de>
Date: Tue, 20 Aug 2002 01:23:21 +0200

On Mon, Jul 02, 2001 at 01:34:06PM +0300, Max Ischenko wrote:
>
> Some of the apps (Galeon) used to have veery long titles that force
> WindowList to look ugly. Is it possible to implement some kind of
> title folding/cutting?

You won't believe it: the patch has finally made it into CVS :-)
(modified somewhat to allow configuring the length)

> This is very cumsy snapshot:
>
> Index: ./fvwm/windowlist.c
> ===================================================================
> RCS file: /home/cvs/fvwm/fvwm/fvwm/windowlist.c,v
> retrieving revision 1.43
> diff -u -r1.43 windowlist.c
> --- ./fvwm/windowlist.c 2001/04/05 11:54:10 1.43
> +++ ./fvwm/windowlist.c 2001/07/02 10:30:24
> _at_@ -389,6 +389,13 @@
>
> if (!name)
> name = "NULL_NAME";
> + else {
> + int max_label_size = 60;
> + if (strlen(name) > max_label_size) {
> + strncpy(name, name, max_label_size);
> + name[max_label_size] = '\0';
> + }
> + }
>
> t_hot = safemalloc(strlen(name) + 48);
> if (use_hotkey)

Bye

Dominik ^_^ ^_^

 --
Dominik Vogt, dominik.vogt_at_gmx.de
Reply-To: dominik.vogt_at_gmx.de
--
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 Mon Aug 19 2002 - 19:16:32 BST

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