xwayland cursor

This commit is contained in:
2026-04-12 19:02:02 +07:00
parent c4b2727eb0
commit b637c11d7f
2 changed files with 7 additions and 6 deletions
+1
View File
@@ -1,3 +1,4 @@
absinthe absinthe
xdg-shell-protocol.h xdg-shell-protocol.h
TAGS TAGS
tags
+6 -6
View File
@@ -128,15 +128,15 @@ void server_new_xdg_decoration(struct wl_listener *listener, void *data)
void server_xwayland_ready(struct wl_listener *listener, void *data) void server_xwayland_ready(struct wl_listener *listener, void *data)
{ {
struct absinthe_server *server = wl_container_of(listener, server, xwayland_ready); struct absinthe_server *server = wl_container_of(listener, server, xwayland_ready);
struct wlr_xcursor *xcursor;
wlr_xwayland_set_seat(server->xwayland, server->seat); wlr_xwayland_set_seat(server->xwayland, server->seat);
// if ((xcursor = wlr_xcursor_manager_get_xcursor(server->cursor_mgr, "default", 1))) struct wlr_xcursor *xcursor;
// wlr_xwayland_set_cursor(server->xwayland, if ((xcursor = wlr_xcursor_manager_get_xcursor(server->cursor_mgr, "default", 1))) {
// xcursor->images[0]->buffer, xcursor->images[0]->width * 4, struct wlr_buffer *buffer = wlr_xcursor_image_get_buffer(xcursor->images[0]);
// xcursor->images[0]->width, xcursor->images[0]->height, wlr_xwayland_set_cursor(server->xwayland, buffer,
// xcursor->images[0]->hotspot_x, xcursor->images[0]->hotspot_y); xcursor->images[0]->hotspot_x, xcursor->images[0]->hotspot_y);
}
} }
void server_xwayland_new_surface(struct wl_listener *listener, void *data) void server_xwayland_new_surface(struct wl_listener *listener, void *data)