[PATCH weston 1/3] evdev: Synchronize keys only if seat is keyboard capable

Kristian Høgsberg hoegsberg at gmail.com
Tue Nov 12 16:22:06 PST 2013


On Tue, Nov 12, 2013 at 10:55:05PM +0100, Jonas Ådahl wrote:
> Signed-off-by: Jonas Ådahl <jadahl at gmail.com>
> ---
>  src/evdev.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Looks good, applied.

Kristian

> diff --git a/src/evdev.c b/src/evdev.c
> index b3609d5..ec18d99 100644
> --- a/src/evdev.c
> +++ b/src/evdev.c
> @@ -691,7 +691,7 @@ evdev_notify_keyboard_focus(struct weston_seat *seat,
>  	uint32_t *k;
>  	int ret;
>  
> -	if (!seat->keyboard)
> +	if (!seat->keyboard_device_count > 0)
>  		return;
>  
>  	memset(all_keys, 0, sizeof all_keys);
> -- 
> 1.8.1.2
> 
> _______________________________________________
> 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