[PATCH wayland] protocol: Remove incorrect statement that attach must precede damage

Daniel Stone daniel at fooishbar.org
Thu Nov 19 03:08:50 PST 2015


Hi,

On 18 November 2015 at 18:30, Bill Spitzak <spitzak at gmail.com> wrote:
> On Wed, Nov 18, 2015 at 7:44 AM, Derek Foreman <derekf at osg.samsung.com>
> wrote:
>> The documentation for wl_surface.commit makes it clear that the
>> application of damage follows attach during the commit, so it
>> doesn't matter what order the app sends the requests.
>>
>> Many existing apps post damage before attaching a buffer already,
>> and it's really quite reasonable to do so.
>
> Especially because they probably think of the old buffer as being the one
> that is "damaged", while the new buffer does not have any damage.

No, it does. The old buffer has not changed. The new buffer is the one
with the changed areas, and changed areas are the literal definition
of damaged.

Cheers,
Daniel


More information about the wayland-devel mailing list