Gunnar Evermann <Gunnar.Evermann(a)nats.informatik.uni-hamburg.de> writes:
What do you mean "other application"?
I certainly hope that no other app kills my windows, or is that really
possible?
Yes. X windows are shared resources. Anyone can destroy, draw on,
get events from,, unmap, etc., any window. Well, anyone in the sense
of has a valid connection to the X server. That's how/why window
managers work.
Oh, it does!
That would be expect_x_error() and x_error_occurred_p() in
device-x.c. The only drawback is that they call XSync(), which started
this whole thread :-(
Maybe we should just accept this damned X-errors... ;-(
If you are doing an
XQueryPointer() than the round trip is already
happening. I don't think the XSync() is actually needed in this case
although in general it is needed. How to get it out of those routines
is another matter, of course.
--pete