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)
committerKristian Høgsberg <krh@bitplanet.net>
Fri, 3 Aug 2012 17:32:20 +0000 (13:32 -0400)
commitd858351a614bc807e664d670ad5359743bb8f5df
tree99c64774252aa468ee4d77ba6ee938702d4907d9
parent81a13a3757fe27e421e76a207655a76e545e4b3d
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/compositor-drm.c
src/evdev.c