Subject: FVWM: WindowList with very long titles

From: Max Ischenko <[email-masked]>
Date: Mon, 2 Jul 2001 13:34:06 +0300

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?

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)

-- 
Best regards, Maxim F. Ischenko.
--
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].