diff --git a/include/wlr/types/wlr_xcursor_manager.h b/include/wlr/types/wlr_xcursor_manager.h index 7d7b19ab..32636c4e 100644 --- a/include/wlr/types/wlr_xcursor_manager.h +++ b/include/wlr/types/wlr_xcursor_manager.h @@ -10,7 +10,6 @@ #define WLR_TYPES_WLR_XCURSOR_MANAGER_H #include -#include #include /** @@ -57,15 +56,4 @@ bool wlr_xcursor_manager_load(struct wlr_xcursor_manager *manager, struct wlr_xcursor *wlr_xcursor_manager_get_xcursor( struct wlr_xcursor_manager *manager, const char *name, float scale); -/** - * Set a struct wlr_cursor's cursor image to the specified cursor name for all - * scale factors. struct wlr_cursor will take over from this point and ensure - * the correct cursor is used on each output, assuming a - * struct wlr_output_layout is attached to it. - * - * Deprecated: wlr_cursor_set_xcursor() should be used instead. - */ -void wlr_xcursor_manager_set_cursor_image(struct wlr_xcursor_manager *manager, - const char *name, struct wlr_cursor *cursor); - #endif diff --git a/types/wlr_xcursor_manager.c b/types/wlr_xcursor_manager.c index 3526285b..6f366f5b 100644 --- a/types/wlr_xcursor_manager.c +++ b/types/wlr_xcursor_manager.c @@ -65,20 +65,3 @@ struct wlr_xcursor *wlr_xcursor_manager_get_xcursor( } return NULL; } - -void wlr_xcursor_manager_set_cursor_image(struct wlr_xcursor_manager *manager, - const char *name, struct wlr_cursor *cursor) { - struct wlr_xcursor_manager_theme *theme; - wl_list_for_each(theme, &manager->scaled_themes, link) { - struct wlr_xcursor *xcursor = - wlr_xcursor_theme_get_cursor(theme->theme, name); - if (xcursor == NULL) { - continue; - } - - struct wlr_xcursor_image *image = xcursor->images[0]; - wlr_cursor_set_image(cursor, image->buffer, image->width * 4, - image->width, image->height, image->hotspot_x, image->hotspot_y, - theme->scale); - } -}