From patchwork Sun Jun 20 11:39:03 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Fix new mouse handler activation From: Konstantin Khlebnikov X-Patchwork-Id: 56260 Message-Id: <20100620113903.5600.62492.stgit@zurg> To: Cc: aliguori@us.ibm.com Date: Sun, 20 Jun 2010 15:39:03 +0400 Activate newly added mouse event handles, as it was before commit 6fef28ee6e This patch will at least fix vmmouse, which was broken by that commit. Signed-off-by: Konstantin Khlebnikov --- input.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/input.c b/input.c index 651442d..da44773 100644 --- a/input.c +++ b/input.c @@ -75,7 +75,7 @@ QEMUPutMouseEntry *qemu_add_mouse_event_handler(QEMUPutMouseEvent *func, s->qemu_put_mouse_event_name = qemu_strdup(name); s->index = mouse_index++; - QTAILQ_INSERT_TAIL(&mouse_handlers, s, node); + QTAILQ_INSERT_HEAD(&mouse_handlers, s, node); check_mode_change();