evdev: Synchronize keys only if seat is keyboard capable

Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
dev
Jonas Ådahl 11 years ago committed by Kristian Høgsberg
parent 47f1043877
commit e82f8e4b0f
  1. 2
      src/evdev.c

@ -691,7 +691,7 @@ evdev_notify_keyboard_focus(struct weston_seat *seat,
uint32_t *k; uint32_t *k;
int ret; int ret;
if (!seat->keyboard) if (!seat->keyboard_device_count > 0)
return; return;
memset(all_keys, 0, sizeof all_keys); memset(all_keys, 0, sizeof all_keys);

Loading…
Cancel
Save