uterm: input: add flag to input-events marking them as handled
authorDavid Herrmann <dh.herrmann@googlemail.com>
Mon, 8 Oct 2012 15:52:00 +0000 (17:52 +0200)
committerDavid Herrmann <dh.herrmann@googlemail.com>
Mon, 8 Oct 2012 15:52:00 +0000 (17:52 +0200)
commitc9564108bdd4d3f041242ef5a5cb1e24bd3f81cc
tree5fed4f752bc8a60ffe68ba8e10c0710ab2fea000
parentb2dd933cff53f73088e306ddb193e51c9724ea2b
uterm: input: add flag to input-events marking them as handled

If multiple handlers are called on the same input-event, we must notify
handlers whether the event was already handled by a previous callback. We
push this decision to the handlers by allowing them to modify the
"handled" flag for an input event.

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
src/terminal.c
src/ui.c
src/uterm.h
src/uterm_input.c
src/uterm_vt.c