[PATCH 1/2] protocol: Allow versioned message arguments
Alexander Larsson
alexl at redhat.com
Mon May 13 05:00:28 PDT 2013
On mån, 2013-05-13 at 13:49 +0200, John Kåre Alsaker wrote:
> On Mon, May 13, 2013 at 1:28 PM, Alexander Larsson <alexl at redhat.com>
> wrote:
> On mån, 2013-05-13 at 13:26 +0200, John Kåre Alsaker wrote:
> > For the wl_output case I suggest we add a 'done' event which
> signals
> > that the compositor is done sending a batch of events for an
> wl_output
> > and related extension objects (which versioned message
> arguments won't
> > handle). This would be analogous to wl_surface.commit, only
> coming
> > from the server side.
>
>
> As i said in another mail, an even easier approach is to use
> the gemetry
> event itself as the "done" event, and just send the additions
> (if any)
> *before* the geometry event.
> That would also work, but is uglier. The geometry event is rather
> large too. Since currently events can happen at any time, adding a
> done event won't break backwards compatibility.
No, but it means you have to special-case the versions that don't send a
done event. And in practice the geometry is emitted seldom and the two
probably almost always change at the same time, so i don't think you'll
ever see just scale changed + done.
More information about the wayland-devel
mailing list