[PATCH weston 1/2] input: Send key-repeat

Jason Ekstrand jason at jlekstrand.net
Mon Aug 4 17:48:44 PDT 2014


Both of these look good to me.  I'll get around to pushing them soon.
--Jason


On Mon, Aug 4, 2014 at 10:43 AM, Jasper St. Pierre <jstpierre at mecheye.net>
wrote:

> ---
>  src/input.c | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/src/input.c b/src/input.c
> index 4aa8ca7..aaa2223 100644
> --- a/src/input.c
> +++ b/src/input.c
> @@ -1721,6 +1721,9 @@ seat_get_keyboard(struct wl_client *client, struct
> wl_resource *resource,
>         wl_resource_set_implementation(cr, &keyboard_interface,
>                                        seat, unbind_resource);
>
> +       if (wl_resource_get_version(cr) >=
> WL_KEYBOARD_REPEAT_INFO_SINCE_VERSION)
> +               wl_keyboard_send_repeat_info(cr, 30, 200);
> +
>         if (seat->compositor->use_xkbcommon) {
>                 wl_keyboard_send_keymap(cr,
> WL_KEYBOARD_KEYMAP_FORMAT_XKB_V1,
>                                         keyboard->xkb_info->keymap_fd,
> @@ -2207,7 +2210,7 @@ weston_seat_init(struct weston_seat *seat, struct
> weston_compositor *ec,
>         wl_signal_init(&seat->destroy_signal);
>         wl_signal_init(&seat->updated_caps_signal);
>
> -       seat->global = wl_global_create(ec->wl_display,
> &wl_seat_interface, 3,
> +       seat->global = wl_global_create(ec->wl_display,
> &wl_seat_interface, 4,
>                                         seat, bind_seat);
>
>         seat->compositor = ec;
> --
> 2.0.4
>
> _______________________________________________
> wayland-devel mailing list
> wayland-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/wayland-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/wayland-devel/attachments/20140804/9e70279e/attachment.html>


More information about the wayland-devel mailing list