diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2014-03-16 00:38:45 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2014-05-16 08:30:12 +0200 |
commit | 528728fd93df348f9003d1067fb26e79f377bfa9 (patch) | |
tree | 9a483c17c22f6640071e97319d6e8301b2a0f637 /ui/input.c | |
parent | 02aa76c2ba5df8db7c968d92959af2a7c35690a8 (diff) | |
download | qemu-528728fd93df348f9003d1067fb26e79f377bfa9.zip qemu-528728fd93df348f9003d1067fb26e79f377bfa9.tar.gz qemu-528728fd93df348f9003d1067fb26e79f377bfa9.tar.bz2 |
input: add qemu_input_handler_deactivate
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'ui/input.c')
-rw-r--r-- | ui/input.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -39,6 +39,13 @@ void qemu_input_handler_activate(QemuInputHandlerState *s) qemu_input_check_mode_change(); } +void qemu_input_handler_deactivate(QemuInputHandlerState *s) +{ + QTAILQ_REMOVE(&handlers, s, node); + QTAILQ_INSERT_TAIL(&handlers, s, node); + qemu_input_check_mode_change(); +} + void qemu_input_handler_unregister(QemuInputHandlerState *s) { QTAILQ_REMOVE(&handlers, s, node); |