[PATCH wayland] protocol: Add a name event to give seat name
Kristian Høgsberg
hoegsberg at gmail.com
Tue Jun 4 21:15:04 PDT 2013
On Fri, May 31, 2013 at 06:08:23PM +0100, Rob Bradford wrote:
> From: Rob Bradford <rob at linux.intel.com>
>
> This provides the ability for a client to differentiate events from
> different seats in a multiple seat environment.
That looks fine, applied. For v2 of wl_seat, I do have one other
items I want to do before we release:
- destroy requests for wl_seat, wl_pointer, wl_keyboard, and
wl_touch. This is one of the slightly embarassing protocol gaps
that needs to get fixed. We can't call it wl_seat.destroy, since
the scanner already auto-generates a wl_seat_destroy() destructor
for the wl_proxy, which doesn't send a request. Calling the
destroy request 'destroy' would mean that old code that calls
wl_seat_destroy() would be sending a v2 request without proper
version checking. So we have to call the request something else.
I like wl_seat_close(). Same goes for pointer, keyboard and touch.
Kristian
> ---
> protocol/wayland.xml | 11 ++++++++++-
> 1 file changed, 10 insertions(+), 1 deletion(-)
>
> diff --git a/protocol/wayland.xml b/protocol/wayland.xml
> index f3ba296..6302271 100644
> --- a/protocol/wayland.xml
> +++ b/protocol/wayland.xml
> @@ -1172,7 +1172,7 @@
> </request>
> </interface>
>
> - <interface name="wl_seat" version="1">
> + <interface name="wl_seat" version="2">
> <description summary="group of input devices">
> A seat is a group of keyboards, pointer and touch devices. This
> object is published as a global during start up, or when such a
> @@ -1199,6 +1199,15 @@
> <arg name="capabilities" type="uint"/>
> </event>
>
> + <event name="name">
> + <description summary="unique identifier for this seat">
> + In a multiseat configuration this can be used by the client to help
> + identify which physical devices the seat represents. Based on
> + the seat configuration used by the compositor.
> + </description>
> + <arg name="name" type="string"/>
> + </event>
> +
> <request name="get_pointer">
> <description summary="return pointer object">
> The ID provided will be initialized to the wl_pointer interface
> --
> 1.8.1.4
>
> _______________________________________________
> wayland-devel mailing list
> wayland-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/wayland-devel
More information about the wayland-devel
mailing list