From owner-freebsd-smp Tue Nov 25 14:43:18 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id OAA11902 for smp-outgoing; Tue, 25 Nov 1997 14:43:18 -0800 (PST) (envelope-from owner-freebsd-smp) Received: from smtp01.primenet.com (smtp01.primenet.com [206.165.6.131]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id OAA11848; Tue, 25 Nov 1997 14:43:03 -0800 (PST) (envelope-from tlambert@usr05.primenet.com) Received: (from daemon@localhost) by smtp01.primenet.com (8.8.8/8.8.8) id IAA02035; Tue, 25 Nov 1997 08:58:09 -0700 (MST) Received: from usr05.primenet.com(206.165.6.205) via SMTP by smtp01.primenet.com, id smtpd002021; Tue Nov 25 08:58:00 1997 Received: (from tlambert@localhost) by usr05.primenet.com (8.8.5/8.8.5) id PAA29439; Tue, 25 Nov 1997 15:42:16 -0700 (MST) From: Terry Lambert Message-Id: <199711252242.PAA29439@usr05.primenet.com> Subject: Re: Compiler Bug??? To: shimon@simon-shapiro.org Date: Tue, 25 Nov 1997 22:42:15 +0000 (GMT) Cc: freebsd-current@freebsd.org, freebsd-hackers@freebsd.org, freebsd-smp@freebsd.org In-Reply-To: from "Simon Shapiro" at Nov 24, 97 09:13:36 pm X-Mailer: ELM [version 2.4 PL23] Content-Type: text Sender: owner-freebsd-smp@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > 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. Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers.