summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTrevor McCort <tjmccort@gmail.com>2013-10-15 19:41:12 -0500
committerKristian Høgsberg <krh@bitplanet.net>2013-10-15 23:18:47 -0700
commit58019c294dcb4634cd9c1d7400fcdb8ae62a1b26 (patch)
tree4dd4a5627e54e51dbe4c41f26aaab74e17fc75c0
parenta327beb0a80b7b7c92d9dc50bafb059d35aed673 (diff)
xwayland: Fix hidden cursor
If a cursor is set when bits->emptyMask is true, the xserver sets a NULL cursor instead. Signed-off-by: Trevor McCort <tjmccort@gmail.com>
-rw-r--r--hw/xfree86/xwayland/xwayland-cursor.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/hw/xfree86/xwayland/xwayland-cursor.c b/hw/xfree86/xwayland/xwayland-cursor.c
index 2cdd2489b..2b3cb5e63 100644
--- a/hw/xfree86/xwayland/xwayland-cursor.c
+++ b/hw/xfree86/xwayland/xwayland-cursor.c
@@ -153,9 +153,16 @@ 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);