Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!ukc!acorn!ixi!clive From: clive@x.co.uk (Clive Feather) Newsgroups: comp.windows.x Subject: Re: Multiple Displays in Xt Message-ID: Date: 8 Nov 90 06:58:18 GMT References: Reply-To: clive@x.co.uk (Clive D.W. Feather) Distribution: comp Organization: IXI Limited, Cambridge, UK Lines: 32 John Hagerman writes: > I can't seem to open multiple displays in my X Toolkit application. I > initialize the toolkit, create an application context, and then do an > XtOpenDisplay for each display. I can open the same display multiple > times, but not different displays. [and gives details] Der Mouse replied: > I am fairly sure R3 Xt simply does not work right when you try to open > multiple displays. (Some of the Xt-private state information is not > correctly tagged according to which display it belongs to, so Xt tries > to use some things on displays they didn't come from. From your quoted > error message, it seems it does this with a Cursor in your case.) > [...] Der Mouse is correct. The state information that is not correctly tagged is in the String to Cursor converter (CvtStringToCursor in Converters.c). The R3 code stored the results of conversion internally, rather than letting the Intrinsics cache the result. This means that when the same cursor is converted for a different display, the stored value was used instead of reconverting. Fixes: 1: Try setting the resources so that a different named cursor is used for each display. 2: Patch CvtStringToCursor to stop it storing the value. 3: Fixed in R4 (from a quick glance at the code). -- Clive D.W. Feather | IXI Limited | If you lie to the compiler, clive@x.co.uk | 62-74 Burleigh St. | it will get its revenge. Phone: +44 223 462 131 | Cambridge CB1 1OJ | - Henry Spencer (USA: 1 800 XDESK 57) | United Kingdom |