On Fri, 24 Feb 2012 at 17:50:48 +0100, Rainer Hurling wrote:
 
> --- WindowMaker.h.orig  2012-02-14 20:36:01.000000000 +0100
> +++ WindowMaker.h       2012-02-24 17:43:09.000000000 +0100
> @@ -428,17 +428,17 @@
>      int show_clip_title;
> 
>      struct {
> -        unsigned int nodock:1;        /* don't display the dock */
> -        unsigned int noclip:1;         /* don't display the clip */
> -        unsigned int nocpp:1;         /* don't use cpp */
> -        unsigned int noupdates:1;      /* don't require ~/GNUstep
> (-static) */
> -        unsigned int noautolaunch:1;   /* don't autolaunch apps */
> -        unsigned int norestore:1;      /* don't restore session */
> -        unsigned int create_stdcmap:1; /* create std colormap */
> +        unsigned int nodock;          /* don't display the dock */
> +        unsigned int noclip;         /* don't display the clip */
> +        unsigned int nocpp;           /* don't use cpp */
> +        unsigned int noupdates;      /* don't require ~/GNUstep
> (-static) */
> +        unsigned int noautolaunch;   /* don't autolaunch apps */
> +        unsigned int norestore;      /* don't restore session */
> +        unsigned int create_stdcmap; /* create std colormap */
>  #ifndef HAVE_INOTIFY
> -       unsigned int nopolling:1;      /* don't poll the defaults
> database for changes */
> +       unsigned int nopolling;      /* don't poll the defaults
> database for changes */
>  #endif
> -        unsigned int restarting:2;
> +        unsigned int restarting
>      } flags;                          /* internal flags */
>  } WPreferences;
> 
> 
> Unfortunately this changes nothing in the behaviour of restoring the
> sessions on FreeBSD.

Ok, thanks a lot for testing. I crazily thought it might be some
bug caused by gcc w.r.t to setting and reading those fields.

Because there is the 'create_stdcmap' next to 'restarting', and afaics
create_stdcmap is defined nowhere in wmaker (it's a candidate for 
a cleanup removal, I guess). So this could have propagated to the
neighboring fields if the gcc was not careful enough with reading
just the two bits of restarting (and instead reading a whole byte).

So thanks for clearing that up.


-- 
To unsubscribe, send mail to [email protected].

Reply via email to