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