evdev: Synchronize keys only if seat is keyboard capable
authorJonas Ådahl <jadahl@gmail.com>
Sun, 10 Nov 2013 15:35:32 +0000 (16:35 +0100)
committerJonas Ådahl <jadahl@gmail.com>
Sun, 10 Nov 2013 16:51:34 +0000 (17:51 +0100)
Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
src/evdev.c

index 50ce871..327a93f 100644 (file)
@@ -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);