Received: from eggs.gnu.org ([2001:4830:134:3::10]:45285) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XUGH1-0000im-Bp for qemu-devel@nongnu.org; Wed, 17 Sep 2014 10:32:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XUGGu-0000TY-99 for qemu-devel@nongnu.org; Wed, 17 Sep 2014 10:31:59 -0400 Received: from smtp.citrix.com ([66.165.176.89]:35628) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XUGGu-0000Rt-5i for qemu-devel@nongnu.org; Wed, 17 Sep 2014 10:31:52 -0400 From: Owen smith Date: Wed, 17 Sep 2014 15:30:39 +0100 Message-ID: <1410964242-3341-3-git-send-email-owen.smith@citrix.com> In-Reply-To: <1410964242-3341-1-git-send-email-owen.smith@citrix.com> References: <1410964242-3341-1-git-send-email-owen.smith@citrix.com> MIME-Version: 1.0 Content-Type: text/plain Subject: [Qemu-devel] [PATCH v2 2/5] xenfb: Activate mouse event handler List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: stefano.stabellini@eu.citrix.com, Owen smith , xen-devel@lists.xen.org Without activating the mouse event handler, mouse events are not delivered to the new handler. Input events are only delivered to the first matching handler in the input chain. Activating a handler moves the handler to the start of the chain. Note: qemu_add_kbd_event_handler adds and activates the keyboard handler, where qemu_add_mouse_event_handler does not activate the mouse handler. Signed-off-by: Owen smith --- hw/display/xenfb.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/display/xenfb.c b/hw/display/xenfb.c index 9dcf9b6..69471e9 100644 --- a/hw/display/xenfb.c +++ b/hw/display/xenfb.c @@ -383,6 +383,7 @@ static void input_connected(struct XenDevice *xendev) in->qmouse = qemu_add_mouse_event_handler(xenfb_mouse_event, in, in->abs_pointer_wanted, "Xen PVFB Mouse"); + qemu_activate_mouse_event_handler(in->qmouse); if (in->qkbd) { qemu_remove_kbd_event_handler(in->qkbd); -- 2.1.0