FVWM: WindowList with very long titles

From: Max Ischenko <max_at_malva.com.ua>
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
_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)



-- 
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 majordomo_at_fvwm.org.
To report problems, send mail to fvwm-owner_at_fvwm.org.
Received on Mon Jul 02 2001 - 05:34:16 BST

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