Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Nov 1997 17:40:49 -0800 (PST)
From:      Simon Shapiro <shimon@simon-shapiro.org>
To:        Terry Lambert <tlambert@primenet.com>, freebsd-ports@freebsd.org
Subject:   Re: Compiler Bug???
Message-ID:  <XFMail.971125174049.shimon@Simon-Shapiro.ORG>
In-Reply-To: <199711252242.PAA29439@usr05.primenet.com>

next in thread | previous in thread | raw e-mail | index | archive | help

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.971125174049.shimon>