aboutsummaryrefslogtreecommitdiff
path: root/ui/input-legacy.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2013-12-05 11:20:39 +0100
committerGerd Hoffmann <kraxel@redhat.com>2014-03-05 09:52:03 +0100
commit2d0755d21cdc4bd47a44ccbd5e3ee70ba67b20ec (patch)
tree5f106ca12cf8826be186c9e68f1ab29e695a5d2e /ui/input-legacy.c
parent16b0ecd16837c5987ebc675ef4a0e1926491dc72 (diff)
input-legacy: remove kbd_mouse_is_absolute
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'ui/input-legacy.c')
-rw-r--r--ui/input-legacy.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/ui/input-legacy.c b/ui/input-legacy.c
index 22796faa4f..412d4011dc 100644
--- a/ui/input-legacy.c
+++ b/ui/input-legacy.c
@@ -369,7 +369,7 @@ static void check_mode_change(void)
static int current_is_absolute;
int is_absolute;
- is_absolute = kbd_mouse_is_absolute();
+ is_absolute = qemu_input_is_absolute();
if (is_absolute != current_is_absolute) {
notifier_list_notify(&mouse_mode_notifiers, NULL);
@@ -554,15 +554,6 @@ void kbd_mouse_event(int dx, int dy, int dz, int buttons_state)
}
}
-int kbd_mouse_is_absolute(void)
-{
- if (QTAILQ_EMPTY(&mouse_handlers)) {
- return 0;
- }
-
- return QTAILQ_FIRST(&mouse_handlers)->qemu_put_mouse_event_absolute;
-}
-
MouseInfoList *qmp_query_mice(Error **errp)
{
MouseInfoList *mice_list = NULL;