Re: a couple more stupid x related questions

Jaymz Julian <jaymz-y6qSm6YX8/[email protected]>
Newsgroups gmane.comp.freedesktop.xserver
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.