diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2019-01-22 10:28:12 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2019-02-05 10:45:44 +0100 |
commit | c2f2ba4983aa1dd634e78347706e6585afc1f2a0 (patch) | |
tree | fe81391d98f0563585254c2550201060757d4ca7 /ui/vnc.h | |
parent | 0c0d42737dfdcea872a987ecba6ef55047df8881 (diff) |
kbd-state: use state tracker for vnc
Use the new keyboard state tracked for vnc. Allows to drop the
vnc-specific modifier state tracking code.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Message-id: 20190122092814.14919-7-kraxel@redhat.com
Diffstat (limited to 'ui/vnc.h')
-rw-r--r-- | ui/vnc.h | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -44,6 +44,7 @@ #include "keymaps.h" #include "vnc-palette.h" #include "vnc-enc-zrle.h" +#include "ui/kbd-state.h" // #define _VNC_DEBUG 1 @@ -155,7 +156,7 @@ struct VncDisplay int lock_key_sync; QEMUPutLEDEntry *led; int ledstate; - int key_delay_ms; + QKbdState *kbd; QemuMutex mutex; QEMUCursor *cursor; @@ -326,8 +327,6 @@ struct VncState VncReadEvent *read_handler; size_t read_handler_expect; - /* input */ - uint8_t modifiers_state[256]; bool abort; QemuMutex output_mutex; |