From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51631) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WLAOl-0002vj-Uq for qemu-devel@nongnu.org; Wed, 05 Mar 2014 06:54:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WLAOd-0002Dh-3U for qemu-devel@nongnu.org; Wed, 05 Mar 2014 06:54:07 -0500 Received: from mx1.redhat.com ([209.132.183.28]:31917) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WLAOc-0002DH-RD for qemu-devel@nongnu.org; Wed, 05 Mar 2014 06:53:59 -0500 From: Gerd Hoffmann Date: Wed, 5 Mar 2014 12:53:31 +0100 Message-Id: <1394020420-17576-30-git-send-email-kraxel@redhat.com> In-Reply-To: <1394020420-17576-1-git-send-email-kraxel@redhat.com> References: <1394020420-17576-1-git-send-email-kraxel@redhat.com> Subject: [Qemu-devel] [PULL v4 29/38] input-legacy: remove kbd_mouse_is_absolute List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Gerd Hoffmann , Anthony Liguori Signed-off-by: Gerd Hoffmann --- include/ui/console.h | 1 - ui/input-legacy.c | 11 +---------- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/include/ui/console.h b/include/ui/console.h index 53e956d..21b32e4 100644 --- a/include/ui/console.h +++ b/include/ui/console.h @@ -50,7 +50,6 @@ void kbd_put_ledstate(int ledstate); void kbd_mouse_event(int dx, int dy, int dz, int buttons_state); /* Does the current mouse generate absolute events */ -int kbd_mouse_is_absolute(void); void qemu_add_mouse_mode_change_notifier(Notifier *notify); void qemu_remove_mouse_mode_change_notifier(Notifier *notify); diff --git a/ui/input-legacy.c b/ui/input-legacy.c index 22796fa..412d401 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; -- 1.8.3.1