Re: XFixesCreateRegionFromXXX region redux

Jim Gettys <[email protected]>
Newsgroups gmane.comp.freedesktop.xserver
Organization HP Labs, Cambridge Research Laboratory
Message-ID <[email protected]>
Seems like a good/simple solution...
                     - Jim

On Fri, 2003-12-05 at 17:06, Keith Packard wrote:
> It's nice to play with a system for a while and discover the nits before 
> shipping things for real.
> 
> I've been trying to eliminate (or at least limit) the errors generated by 
> the compositing manager and have discovered one case that's causing 
> cascading errors.  I'm using XFixesCreateRegionFromWindow to construct the 
> area of the window to copy into the destination.  That's working fine when 
> the windows aren't disappearing, but when they do, the request fails and 
> the region ID just allocated ends up not referencing a valid region.  
> Further uses of this region cause a cascade of errors.  Yuck.
> 
> A simple solution that I've come up with is to replace the 
> CreateRegionFromXXX apis with CopyRegionFromXXX instead; the internal cost 
> is identical.  Applications would then create an empty region object and 
> copy the contents from the window; non-existant windows would result in 
> empty regions and a single error, rather than an invalid region XID.
> 
> I can (obviously) simply add CopyRegionFromXXX requests to XFixes, but I'd 
> rather remove the CreateRegionFromXXX requests at the same time.
> 
> Comments?
> 
> -keith
> 
> 
> 
> _______________________________________________
> Xserver mailing list
> Xserver-u7BhqnqprCWvj1b/[email protected]
> http://pdx.freedesktop.org/cgi-bin/mailman/listinfo/xserver
-- 
Jim Gettys <[email protected]>
HP Labs, Cambridge Research Laboratory
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.