Re: [patch] allow GDK and GTK to use a "foreign" display

On Wed, 24 May 2000 10:10:49 EDT, Paul Barton-Davis <pbd@Op.Net>  said:
> It works fine. Not much of a test, but you get the idea.

A worthy goal.  I wish there was One True Event Loop so that doing this
sort of stuff would be easier. ;)

A much better indication of 'working' would have been to take the
standard Motif 'helloworld', and add in these calls there, to see if
it Did The Right Thing in that case...

It *may* be possible to make this work, if you're very careful to use
the same 'Display *' variable returned by XOpenDisplay(), but different
'Window *' values.  You'd also have to call XSync() all over the place,
so that each time you did anything you'd get the return value back before
the Other Library's event loop saw it.

You'd probably still get screwed to the wall by asynchronous events
such as map, expose, and iconify events.. .;)

				Valdis Kletnieks
				Operating Systems Analyst
				Virginia Tech

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]