Andreas Beck <[EMAIL PROTECTED]> writes:

> > Just to summarize the pb, demo programs coredump when reaching the X
> > library (XCreateWindow) during or after the ggiSetMode call. I'd rather
> > post the process stack to the ML.
>
> Argl ... strange. I ran LibGGI sucessfully on Solaris and IRIX, so I wonder
> what is different for BSD ...

We've been passing uninitialized parameters to XCreateWindow() for
ages. :-(
For some reason it never caused any problems until recently, as 0
happens to be a valid value for all affected parametsr. It should
be fixed as of yesterday. Fix is included for reference.

//Marcus

Index: mode.inc
===================================================================
RCS file: /projects/ggi/cvsdevel/degas/lib/libggi/display/X/mode.inc,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -b -u -r1.13 -r1.14
--- mode.inc    2000/10/28 20:06:02     1.13
+++ mode.inc    2000/11/18 18:35:15     1.14
@@ -444,12 +451,12 @@
                                XDestroyWindow(priv->xwin.x.display, 
priv->xwin.window);
                        }
                }
-               priv->xwin.visual.visualid = vinfo.visualid;
+               priv->xwin.visual = vinfo;
                if (newwin) {
                        priv->xwin.window = XCreateWindow(priv->xwin.x.display,
                                RootWindow(priv->xwin.x.display,priv->xwin.x.screen),
                                0, 0, tm->visible.x, tm->visible.y, 0,
-                               priv->xwin.visual.depth, priv->xwin.visual.class,
+                               priv->xwin.visual.depth, InputOutput,
                                priv->xwin.visual.visual, 0, NULL);
                        XDefineCursor(priv->xwin.x.display, priv->xwin.window,
                                      priv->xwin.cursor);

-- 
-------------------------------+------------------------------------
        Marcus Sundberg        | http://www.stacken.kth.se/~mackan
 Royal Institute of Technology |       Phone: +46 707 452062
       Stockholm, Sweden       |   E-Mail: [EMAIL PROTECTED]

Reply via email to