xwayland cursor
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
absinthe
|
absinthe
|
||||||
xdg-shell-protocol.h
|
xdg-shell-protocol.h
|
||||||
TAGS
|
TAGS
|
||||||
|
tags
|
||||||
|
|||||||
+6
-6
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user