xkb: don't fill events purely for modifiers

We have no use for Control_L or Alt_R by themselves, the information is
in the "mods" field.

Signed-off-by: Ran Benita <ran234@gmail.com>
Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
This commit is contained in:
Ran Benita 2012-01-18 18:54:48 +02:00 committed by David Herrmann
parent 32e622f8f2
commit e0a1902616

View File

@ -698,7 +698,7 @@ bool kmscon_xkb_process_evdev_key(struct xkb_desc *desc,
}
event_filled = false;
if (key_state != KMSCON_KEY_RELEASED) {
if (key_state != KMSCON_KEY_RELEASED && !state_changed) {
out->keycode = code;
out->keysym = sym;
/* 1-to-1 match - this might change. */