Subject: Re: FVWM: WindowList with very long titles

From: Dominik Vogt <[email-masked]>
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
> @@ -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, [email-masked]
Reply-To: [email-masked]
--
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 [email-masked].
To report problems, send mail to [email-masked].