xpenguins cont'd - repainting a window after penguins walk on it, and when penguins overlap.
pharris at opentext.com
Mon Jun 6 07:10:38 PDT 2011
On 2011-06-06 02:32, Amy C wrote:
> Can anyone think of a nice way to handle this?
Create one window per penguin, using the SHAPE extension. The server
will handle this (and most of the rest of the things you mention above)
so you don't have to.
> A related question -- do you think it's viable to make one (transparent)
> window per penguin? It would be easier than drawing them directly onto
> an existing window (Famous Last Words), but say I had 25 penguins --
> would 25 new windows be a big memory drain or is X good at that sort of
25 windows is not many at all. The real cost is in exposing the
underlying windows, but you're already doing that.
> (Thanks for that suggestion Xavier. I would rather not assume a
> compositor though, I have Fedora at work and Ubuntu at home but it's too
> sucky to have Compiz on it).
SHAPE has been a standard extension for as long as I can remember. It
should be available everywhere, and does not need a compositor. (The
down side vs translucency+compiz is you can only have sharp edges with
SHAPE; no alpha blending)
Open Text Connectivity Solutions Group
Peter Harris http://connectivity.opentext.com/
Research and Development Phone: +1 905 762 6001
pharris at opentext.com Toll Free: 1 877 359 4866
More information about the xorg