Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!vax5!pniy From: pniy@vax5.CIT.CORNELL.EDU Newsgroups: gnu.ghostscript.bug Subject: Re: two windows is too many Summary: I have some fixes for X11R3... Message-ID: <19194@vax5.CIT.CORNELL.EDU> Date: 29 Jul 89 21:23:37 GMT References: <8907282004.AA02231@rothko.cray.com> Sender: news@vax5.CIT.CORNELL.EDU Reply-To: arthur@helios.tn.cornell.edu (Arthur Smith) Distribution: gnu Organization: LASSP, Cornell, Ithaca NY Lines: 31 I only just became aware of this newsgroup, though I've been trying to run ghostscript (1.3) for about a week now. Anyway: In article <8907282004.AA02231@rothko.cray.com> hrp@boring.cray.com (Hal Peterson) writes: >On startup under X, Ghostscript opens two windows; the first one stays >blank and the second one gets all of the graphics. This is happening >because the X device is being initialized twice, once from the C code >in gs_set_device and once from the Ghostscript setup code in ghost.ps. >This is a fix in multiple steps: I worked out a fix to this problem by replacing the makedevice call in ghost.ps by a new function "changedevice" which just resets the default device according to the parameters usually given to makedevice. Wasn't anybody bothered by the fact that the image is not retained after being hidden and re-exposed? (Or did nobody have this problem? I'm on a Sun 3/50, runnning R3.) Anyway, I have a fix to that too, by putting everything into a background pixmap as well as onto the window. This fix also does away with the ridiculous getchar() statement, since it makes no difference when the window receives its expose event. However, the changes I have made are somewhat incompatible with Hal Peterson's patches so I have sent them to "ghost@aladdin" instead of posting them. Arthur Smith internet: arthur@helios.tn.cornell.edu bitnet: arthur@crnlassp