[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v2 2/5] xenfb: Activate mouse event handler
From: |
Stefano Stabellini |
Subject: |
Re: [Qemu-devel] [PATCH v2 2/5] xenfb: Activate mouse event handler |
Date: |
Fri, 26 Sep 2014 16:12:42 +0100 |
User-agent: |
Alpine 2.02 (DEB 1266 2009-07-14) |
On Wed, 17 Sep 2014, Owen smith wrote:
> 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.
how strange
> Signed-off-by: Owen smith <address@hidden>
Acked-by: Stefano Stabellini <address@hidden>
> ---
> 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
>
- [Qemu-devel] [PATCH v2 0/5] xenfb: Add support for Windows PV frontend, Owen smith, 2014/09/17
- [Qemu-devel] [PATCH v2 2/5] xenfb: Activate mouse event handler, Owen smith, 2014/09/17
- Re: [Qemu-devel] [PATCH v2 2/5] xenfb: Activate mouse event handler,
Stefano Stabellini <=
- [Qemu-devel] [PATCH v2 1/5] xenfb: Unregister keyboard event handler correctly, Owen smith, 2014/09/17
- [Qemu-devel] [PATCH v2 3/5] xenfb: Add option to use a grant ref for shared page, Owen smith, 2014/09/17
- [Qemu-devel] [PATCH v2 4/5] xenfb: Add "feature-no-abs-rescale", Owen smith, 2014/09/17
- [Qemu-devel] [PATCH v2 5/5] xenfb: Add "feature-no-console", Owen smith, 2014/09/17