If a cursor is set when bits->emptyMask is true, the xserver sets a NULL cursor instead.
Signed-off-by: Trevor McCort <[email protected]> --- hw/xfree86/xwayland/xwayland-cursor.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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 [email protected] http://lists.freedesktop.org/mailman/listinfo/wayland-devel
