A.Sloman@uk.ac.bham.cs ("A.Sloman") writes:
> define global XprmGetDisplayDatabase(display) -> db;
> lvars display, db;
> xsetup();
> ;;; eek!!!
> exacc :Display display.db -> db
> enddefine;
> -----------------------------------------------------------------------
> (Should I be worried by the "eeks" ?)
> Aaron
As I remember, X structures like Display are supposed to be opaque.
Digging things like the resource database out of one is a little
rude, but when this was written (as part of UIDE-1, 2 years ago) it
seemed to be the only thing to do.
It still seems to work and we've been through a full X Major
Revision since then so I guess it's solid. (famous last words ;)
Ian.
|