Patchwork Fix new mouse handler activation

login
register
mail settings
Submitter Konstantin Khlebnikov
Date June 20, 2010, 11:39 a.m.
Message ID <20100620113903.5600.62492.stgit@zurg>
Download mbox | patch
Permalink /patch/56260/
State New
Headers show

Comments

Konstantin Khlebnikov - June 20, 2010, 11:39 a.m.
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 <khlebnikov@openvz.org>
---
 input.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

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();