Not too many people seem to use xsm together with twm these days.

All relevant changes that in this area took place at or before 
Apr,8th 1997. This code came from the SI.
Well, try the patch below.

Whoever added session management support to twm (and forgot to
document it in the man page) should check this.


Egbert.

Index: add_window.c
===================================================================
RCS file: /home/eich/cvs/xc/programs/twm/add_window.c,v
retrieving revision 1.1.1.7
diff -u -r1.1.1.7 add_window.c
--- add_window.c        12 Dec 2002 14:43:38 -0000      1.1.1.7
+++ add_window.c        28 Jul 2003 17:07:56 -0000
@@ -209,6 +209,13 @@
     FetchWmProtocols (tmp_win);
     FetchWmColormapWindows (tmp_win);
 
+    if (name == NULL)
+       tmp_win->name = strdup(NoName);
+    else {
+      tmp_win->name = strdup(name);
+      free(name);
+    }
+
     if (GetWindowConfig (tmp_win,
        &saved_x, &saved_y, &saved_width, &saved_height,
        &restore_iconified, &restore_icon_info_present,
@@ -277,12 +284,6 @@
     tmp_win->transient = Transient(tmp_win->w, &tmp_win->transientfor);
 
     tmp_win->nameChanged = 0;
-    if (name == NULL)
-       tmp_win->name = strdup(NoName);
-    else {
-      tmp_win->name = strdup(name);
-      free(name);
-    }
     if (tmp_win->class.res_name == NULL)
        tmp_win->class.res_name = NoName;
     if (tmp_win->class.res_class == NULL)

Reply via email to