This one did it! Thanks!

Zvi.

On Wed, 16 Jun 2004 20:27:24 +0200, Richard Levitte via RT wrote about "Re: 
[repository.lp.se #20] 3.7-alpha4 & MapWindowCurrentWorkSpace":
> 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"
> 
> 

-- 
Dr. Zvi Har'El      mailto:[EMAIL PROTECTED]    Department of Mathematics
tel:+972-54-4227607 icq:179294841    Technion - Israel Institute of Technology
fax:+972-4-8293388  http://www.math.technion.ac.il/~rl/    Haifa 32000, ISRAEL
"If you can't say somethin' nice, don't say nothin' at all." -- Thumper (1942)
                               Wednesday, 28 Sivan 5764, 16 June 2004,  9:42PM

Reply via email to