From owner-freebsd-ports Tue Nov 25 17:41:11 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id RAA28541 for ports-outgoing; Tue, 25 Nov 1997 17:41:11 -0800 (PST) (envelope-from owner-freebsd-ports) Received: from nomis.Simon-Shapiro.ORG (nomis.i-Connect.Net [206.190.143.100]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id RAA28511 for ; Tue, 25 Nov 1997 17:41:04 -0800 (PST) (envelope-from shimon@nomis.Simon-Shapiro.ORG) Received: (qmail 545 invoked by uid 1000); 26 Nov 1997 01:40:49 -0000 Message-ID: X-Mailer: XFMail 1.2-beta-111797 [p0] on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <199711252242.PAA29439@usr05.primenet.com> Date: Tue, 25 Nov 1997 17:40:49 -0800 (PST) Reply-To: shimon@simon-shapiro.org Organization: Me, Just me... From: Simon Shapiro To: Terry Lambert , freebsd-ports@freebsd.org Subject: Re: Compiler Bug??? Sender: owner-freebsd-ports@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On 25-Nov-97 Terry Lambert wrote: >> Boot SMP again. Compile and run Xcoral 3.1. Pretty cool editor and >> finally can do ``normal'' cut-n-paste, etc. So I set its geometry >> in >> .Xdefaults to =200x400. Nope. Will not chnge size. >> >> I modify parse.c to have the ugly printf you see below: >> >> flags = XParseGeometry ( buf, &x, &y, &width, &he >> (void)fprintf(stderr, "%s.%d: x = %d, y = %d, w = %d, h =%d\n", >> __FILE__, __LINE__, x, y, width, height); >> >> It says: >> >> parse.c.843: x = -272640524, y = 537577259, w = 200, h = 400 >> >> (x, y are corrdinates which are unspecified, which is OK to look >> this >> ugly) >> >> Size is still huge (about 600x800). > > [ ... add more printf()'s ... ] > >> Guess what? The window now has the specified geometry! > > This one looks like timing. You probably need to call Xsync() > to ensure the GC is written before you use it, or that the > attributes are set before you map the window, etc.. > > Common X programmer pilot error. Thanx Terry. I am forwarding this to the ports list as this is a bug in xcoral which is a port. Mail to the author of xcoral gets ignored. Too bad as this is a nice little, C-based alternative to xemacs. Simon