a couple more stupid x related questions
Jaymz Julian
jaymz@artificial-stupidity.net
Tue, 24 Feb 2004 04:24:32 +1100
On Sun, Feb 22, 2004 at 03:48:22PM +0100, Keith Packard wrote:
>
> Around 0 o'clock on Feb 21, Jaymz Julian wrote:
>
> > Of course, when I try and create a second picture from the same window,
> > the xserver returns an error, which is rather unhandy(tm).
>
> That shouldn't cause an error; perhaps there's something odd in how you
> create the second picture?
indeed, i deleted what i had and started again from the stock composite
manager, and it all started working - i don't know exactly what I did that
was odd, but, well, it was very odd, I guess :);
> > Having looked stupid, we hit problem #2. Is there a simple way that already
> > exists to have damage make the change boxes it generates slightly larger than
> > what is required?
>
> You could take the region, copy it and union in four translated versions.
This won't actually work correctly for a case where the region is smaller
than xsize x ysize pixels - it will leave rather unhandy holes.
> Alternatively, you could expose a 'grow region' primitive in XFIXES. I
> believe the Mac and Windows APIs have examples of how this should be
> specified; I'd look at the Mac version first.
this is looking like what I'll end up doing, although ideally I'd like to
find a way to achieve this without the application having to know what it's
doing, this may be an unrealistic fantasy :)
-- jj
--
--
Jaymz Julian - Coder, Visionary, Fat Ass.
"Hannibal is a serial killer. He only likes to kill and eat people.
Very few people have `I want to be killed and eaten' on their cards,
so Hannibal is out of a job." - http://cards.sf.net