From: Jonas Ådahl Date: Tue, 12 Nov 2013 21:55:05 +0000 (+0100) Subject: evdev: Synchronize keys only if seat is keyboard capable X-Git-Tag: upstream/0.1.8~748 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e82f8e4b0ffce73d60ca903ced098b388457ecca;p=profile%2Fivi%2Fweston-ivi-shell.git evdev: Synchronize keys only if seat is keyboard capable Signed-off-by: Jonas Ådahl --- 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);