[PATCH wayland-protocols v5] text: Create second version of text input protocol

Bill Spitzak spitzak at gmail.com
Fri Mar 25 16:41:01 UTC 2016


On Fri, Mar 25, 2016 at 12:16 AM, Daiki Ueno <ueno at gnu.org> wrote:

>
> > +      <description summary="update state">
> > +     Allows to atomically send state updates from client.
> > +
> > +     This request should follow after a batch of state updating requests
> > +     like set_surrounding_text, set_content_type, set_cursor_rectangle
> and
> > +     set_preferred_language.
>
> This sentence indicates that the request is used for some sort of
> synchronization between the client and compositor.  I'm wondering if it
> could perform a roundtrip using wl_callback, instead of generating a
> serial on the client side.  Then the serial could later be obtained from
> the compositor through wl_callback.done.  Would that cause any race
> conditions?
>

It's not a synchronization, all the requests are going from client to
server. It is to batch them or make them atomic, or as the wl_surface calls
it, it is to double-buffer the requests.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/wayland-devel/attachments/20160325/143c07fa/attachment-0001.html>


More information about the wayland-devel mailing list