[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freedesktop-xorg
Subject:    Re: XSetBackgroundPixmap question
From:       Adam Jackson <ajax () redhat ! com>
Date:       2012-05-21 14:16:50
Message-ID: 1337609810.4334.12.camel () atropine
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


On Sat, 2012-05-19 at 23:00 +0100, Glynn Clements wrote:

> I've encountered code which uses a background pixmap to implement a
> persistent screen, and drawing to the pixmap then calling XClearWindow
> (without calling XSetWindowBackgroundPixmap in between) results in the
> updated pixmap contents appearing in the window. So it appears to use
> reference counting or similar.

Any code which does this is being inadvisably friendly with the
implementation.  From the protocol spec:

    Subsequent drawing into the background or border pixmap has an
    undefined effect on the window state. The server might or might
    not make a copy of the pixmap.

The sample implementation (at least at the dix level) has always done
the current behaviour of taking a reference on the pixmap, but the
sample implementation is not the only X server ever written.

- ajax

["signature.asc" (application/pgp-signature)]

_______________________________________________
xorg@lists.x.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.x.org/mailman/listinfo/xorg
Your subscription address: freedesktop-xorg@progressive-comp.com

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic