@@ 2561,6 2561,13 @@ xwaylandready(struct wl_listener *listener, void *data)
/* assign the one and only seat */
wlr_xwayland_set_seat(xwayland, seat);
+ /* Set the default XWayland cursor to match the rest of dwl. */
+ struct wlr_xcursor *xcursor = wlr_xcursor_manager_get_xcursor(cursor_mgr, "left_ptr", 1);
+ wlr_xwayland_set_cursor(xwayland,
+ xcursor->images[0]->buffer, xcursor->images[0]->width * 4,
+ xcursor->images[0]->width, xcursor->images[0]->height,
+ xcursor->images[0]->hotspot_x, xcursor->images[0]->hotspot_y);
+
xcb_disconnect(xc);
}