evdev: Synchronize keys only if seat is keyboard capable
Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
This commit is contained in:
committed by
Kristian Høgsberg
parent
47f1043877
commit
e82f8e4b0f
+1
-1
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user