summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Ådahl <jadahl@gmail.com>2013-11-10 16:35:32 +0100
committerJonas Ådahl <jadahl@gmail.com>2013-11-10 17:51:34 +0100
commit75f453df6a4c5f358f9bcb91a0cb8ab08593896e (patch)
tree6ab548c247772842ee736734194eb55e204ccbb6
parent098ca89e1744ddf540fef18135bbf43140d8ccb6 (diff)
evdev: Synchronize keys only if seat is keyboard capable
Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
-rw-r--r--src/evdev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/evdev.c b/src/evdev.c
index 50ce8713..327a93fa 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);