xwayland: specify xwm cursor stride in bytes

This commit is contained in:
emersion 2018-03-31 00:22:58 -04:00
parent f133170ff0
commit 692f1746cf
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
2 changed files with 1 additions and 2 deletions

View file

@ -1378,7 +1378,6 @@ void xwm_set_cursor(struct wlr_xwm *xwm, const uint8_t *pixels, uint32_t stride,
xcb_free_cursor(xwm->xcb_conn, xwm->cursor);
}
stride *= 4;
int depth = 32;
xcb_pixmap_t pix = xcb_generate_id(xwm->xcb_conn);