Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!zaphod.mps.ohio-state.edu!samsung!munnari.oz.au!murtoa.cs.mu.oz.au!cmb From: cmb@cs.mu.oz.au (Craig Brown) Newsgroups: comp.windows.x Subject: Making two windows on seperate displays using X toolkit Keywords: X Toolkit Message-ID: <2930@murtoa.cs.mu.oz.au> Date: 10 Jan 90 12:20:27 GMT Organization: Comp Sci, Melbourne Uni, Australia Lines: 29 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