Bumped to 0.9 for wlroots-0.20.0. Updated cursor image buffer handling for xwayland

This commit is contained in:
Thanatos
2026-09-08 11:44:44 +02:00
committed by Guido Cella
parent babccfe6dc
commit 49ca434514
2 changed files with 5 additions and 6 deletions
+2 -3
View File
@@ -69,6 +69,7 @@
#include <xcb/xcb_icccm.h>
#endif
#include "xdg-shell-protocol.h"
#include "util.h"
/* macros */
@@ -3187,9 +3188,7 @@ xwaylandready(struct wl_listener *listener, void *data)
/* Set the default XWayland cursor to match the rest of dwl. */
if ((xcursor = wlr_xcursor_manager_get_xcursor(cursor_mgr, "default", 1)))
wlr_xwayland_set_cursor(xwayland,
xcursor->images[0]->buffer, xcursor->images[0]->width * 4,
xcursor->images[0]->width, xcursor->images[0]->height,
wlr_xwayland_set_cursor(xwayland, wlr_xcursor_image_get_buffer(xcursor->images[0]),
xcursor->images[0]->hotspot_x, xcursor->images[0]->hotspot_y);
}
#endif