Path: utzoo!attcan!uunet!ogicse!mintaka!bloom-beacon!ASC.SLB.COM!hara From: hara@ASC.SLB.COM Newsgroups: comp.windows.x Subject: Re: Does XUI support dual screen? Message-ID: <9010241848.AA13185.hara@ika.ASC.SLB.COM> Date: 24 Oct 90 18:48:31 GMT Sender: daemon@athena.mit.edu (Mr Background) Organization: The Internet Lines: 68 > >XUI is based upon a fairly old version of the Intrinsics. This bug has been >fixed in the MIT distribution. > >Your options are > - Fix it yourself locally (since you seem to have the source!) > - Switch to a newer toolkit -- may I suggest Motif 1.1? > > -paul asente > I took the first option, and now it works perfectly , and here is the "diff" of GCManager.c file; diff X11/GCManager.c /uha0/xuisrc/lib/dwt 71d70 < #if 0 73,83d71 < #endif < < typedef struct _GCParentRec { < Screen *screen; < Cardinal depth; < Drawable drawable; < struct _GCParentRec *next; < } GCParentRec; < < static GCParentRec *GCParent = NULL; < 152,153d139 < GCParentRec *tmp_gcp; < GCParentRec *cur_gcp; 182,183d167 < < #if 0 /* original code by DEC */ 197,223d180 < } < #endif < < /* < ** Fix for multi color screen support < ** by Kenzo Hara (ASC/WS) Oct 23 '90 < */ < if ((drawable = XtWindow(widget)) == NULL) { < for (cur_gcp=GCParent;cur_gcp != NULL;cur_gcp = cur_gcp->next) { < if (screen == cur_gcp->screen && depth == cur_gcp->depth) { < drawable = cur_gcp->drawable; < break; < } < } < if (!drawable) { < if (depth == DefaultDepthOfScreen(screen)) { < drawable = RootWindowOfScreen(screen); < } else { < drawable = XCreatePixmap(cur->dpy, screen->root, 1, 1, depth); < } < tmp_gcp = XtNew(GCParentRec); < tmp_gcp->screen = screen; < tmp_gcp->depth = depth; < tmp_gcp->drawable = drawable; < tmp_gcp->next = GCParent; < GCParent = tmp_gcp; < } K. Hara hara@asc.slb.com Schlumberger Well Services