In message <[EMAIL PROTECTED]> on Wed, 16 Jun 2004 20:07:52 +0200, "Zvi Har'El via RT" 
<[EMAIL PROTECTED]> said:

ctwm-bugs> The effect was disasterous:
ctwm-bugs> 
ctwm-bugs> /usr/local/src/build/ctwm$ ./ctwm
ctwm-bugs> 
ctwm-bugs> Congratulations, you have found a bug in ctwm
ctwm-bugs> If a core file was generated in your directory,
ctwm-bugs> can you please try extract the stack trace,
ctwm-bugs> and mail the results, and a description of what you were doing,
ctwm-bugs> to [EMAIL PROTECTED]  Thank you for your support.
ctwm-bugs> ...exiting ctwm now.
ctwm-bugs> 
ctwm-bugs> zsh: abort      ./ctwm
ctwm-bugs> 
ctwm-bugs> No core dump was generated...

OK, another try, *instead* of my previous patch:

Index: parse.c
===================================================================
RCS file: /orgs/lp/free/cvs/X/ctwm/parse.c,v
retrieving revision 1.7
diff -u -r1.7 parse.c
--- parse.c     16 Jun 2004 13:17:03 -0000      1.7
+++ parse.c     16 Jun 2004 18:24:28 -0000
@@ -1126,6 +1126,8 @@
 
 int do_single_keyword (int keyword)
 {
+    virtualScreen *vs;
+
     switch (keyword) {
       case kw0_NoDefaults:
        Scr->NoDefaults = TRUE;
@@ -1212,7 +1214,10 @@
        return 1;
 
       case kw0_StartInMapState:
-       Scr->workSpaceMgr.initialstate = MAPSTATE;
+       for (vs = Scr->vScreenList; vs != NULL; vs = vs->next) {
+         vs->wsw->state = MAPSTATE;
+       }
+       Scr->workSpaceMgr.initialstate = MAPSTATE; /* redundant, really */
        return 1;
 
       case kw0_NoShowOccupyAll:

-----
Please consider sponsoring my work on free software.
See http://www.free.lp.se/sponsoring.html for details.

-- 
Richard Levitte     | http://richard.levitte.org/ | Tunnlandsv. 52
Levitte Programming | http://www.lp.se/           | S-168 36 Bromma
T: +46-708-26 53 44 |                             | SWEDEN
     "Price, performance, quality...  choose the two you like"



Reply via email to