compositor-drm, evdev: don't crash on missing keyboard
authorPekka Paalanen <ppaalanen@gmail.com>
Fri, 3 Aug 2012 11:39:11 +0000 (14:39 +0300)
committerJonas Ådahl <jadahl@gmail.com>
Sun, 10 Nov 2013 16:51:30 +0000 (17:51 +0100)
commite427ef8cb70fdef565fba899230cd41eba694ebc
tree57928468733a262b9c10aa156d5624c499fbb4f5
parentb2d021b95ec157b16d65a709d79d817106640778
compositor-drm, evdev: don't crash on missing keyboard

Weston's notify_keyboard_focus_*() assume that a keyboard is present, if
they are called. With evdev, there might not always be a keyboard.

Also clean up the variable definition in evdev_notify_keyborad_focus().
I read that function through many times and finally had to grep where
does 'all_keys' come from.

Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
src/evdev.c