Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Nov 1997 22:42:15 +0000 (GMT)
From:      Terry Lambert <tlambert@primenet.com>
To:        shimon@simon-shapiro.org
Cc:        freebsd-current@freebsd.org, freebsd-hackers@freebsd.org, freebsd-smp@freebsd.org
Subject:   Re: Compiler Bug???
Message-ID:  <199711252242.PAA29439@usr05.primenet.com>
In-Reply-To: <XFMail.971124211336.shimon@Simon-Shapiro.ORG> from "Simon Shapiro" at Nov 24, 97 09:13:36 pm

next in thread | previous in thread | raw e-mail | index | archive | help
> 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.



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