From: Daniel Stone Date: Fri, 22 Jun 2012 12:21:37 +0000 (+0100) Subject: notify_key: Add update_state argument X-Git-Tag: 0.1.0~163^2~79 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f749baab42bf22e0ee00cae43742b7d0b2d4c354;p=platform%2Fupstream%2Flibinput.git notify_key: Add update_state argument If update_state is true, then notify_key will continue to call xkb_key_update_state to update the local state mask, as before this commit. Otherwise, it will rely on the compositor to manually update the state itself, for nested compositors. Signed-off-by: Daniel Stone --- diff --git a/src/evdev.c b/src/evdev.c index 05d1ebe..3355192 100644 --- a/src/evdev.c +++ b/src/evdev.c @@ -88,7 +88,8 @@ evdev_process_key(struct evdev_input_device *device, notify_key(&device->master->base.seat, time, e->code, e->value ? WL_KEYBOARD_KEY_STATE_PRESSED : - WL_KEYBOARD_KEY_STATE_RELEASED); + WL_KEYBOARD_KEY_STATE_RELEASED, + STATE_UPDATE_AUTOMATIC); break; } }