[PATCH xwayland] xwayland: Fix hidden cursor

Kristian Høgsberg hoegsberg at gmail.com
Wed Oct 16 08:19:28 CEST 2013


On Tue, Oct 15, 2013 at 07:41:12PM -0500, Trevor McCort wrote:
> If a cursor is set when bits->emptyMask is true, the xserver
> sets a NULL cursor instead.
> 
> Signed-off-by: Trevor McCort <tjmccort at gmail.com>
> ---
>  hw/xfree86/xwayland/xwayland-cursor.c | 10 +++++++++-
>  1 file changed, 9 insertions(+), 1 deletion(-)

Thanks for fixing that, patch applied.

Kristian

> diff --git a/hw/xfree86/xwayland/xwayland-cursor.c b/hw/xfree86/xwayland/xwayland-cursor.c
> index 2cdd248..baf3b23 100644
> --- a/hw/xfree86/xwayland/xwayland-cursor.c
> +++ b/hw/xfree86/xwayland/xwayland-cursor.c
> @@ -153,9 +153,17 @@ xwl_seat_set_cursor(struct xwl_seat *xwl_seat)
>  {
>      struct wl_buffer *buffer;
>  
> -    if (!xwl_seat->x_cursor || !xwl_seat->wl_pointer)
> +    if (!xwl_seat->wl_pointer)
>          return;
>  
> +    if(!xwl_seat->x_cursor)
> +    {
> +        wl_pointer_set_cursor(xwl_seat->wl_pointer,
> +                              xwl_seat->pointer_enter_serial,
> +                              NULL, 0, 0);
> +        return;
> +    }
> +
>      buffer = dixGetPrivate(&xwl_seat->x_cursor->devPrivates,
>                             &xwl_seat->xwl_screen->cursor_private_key);
>  
> -- 
> 1.8.4
> 
> _______________________________________________
> wayland-devel mailing list
> wayland-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/wayland-devel


More information about the wayland-devel mailing list