[comp.windows.x] Making two windows on seperate displays using X toolkit

cmb@cs.mu.oz.au (Craig Brown) (01/10/90)

I have a system with two list widgets
I want each one to open on a different display.
The way I am doing it is as follows (sorry about the syntax)

XtToolkitInitialize()
app = xtcreateappcontext()
disp1 = OpenDisplay(app, ..., ..., ..., ...)
disp2 = OpenDisplay(app, ..., ..., ..., ...)
top1 = XtCreateAppShell(disp1)
top2 = XtCreateAppShell(disp1)
...other stuff (xtcreatewidget + xtrealizewidget)
xtappmainloop(app)

Sorry about not including the program... I am writing this from a computer
50km away from the one I am running the X source on.

The problem is the two displays seem to be stuffing up each other.
I have also tried using two apps, but then i cant "mainloop" both of them

If I use XtMainLoop rather than XtAppMainLoop, I get a select failed error.

The lack of doco in Australia is causing a headache.
I would appreciate a precise answer asap
A working example I would kill for


				Craig Brown	(cmb@munmurra.cs.mu.OZ.AU)
				Melbourne University, Australia