diff options
author | Simon Ser <contact@emersion.fr> | 2023-06-23 20:09:49 +0200 |
---|---|---|
committer | Alexander Orzechowski <alex@ozal.ski> | 2023-07-02 22:42:37 +0000 |
commit | 18bafbfc57039e16d1dabd78b882b3d6477f76b5 (patch) | |
tree | fc7a71242e9cb26f22b5211ee6281e81ccee3296 | |
parent | 71c87ff4b8b6a4bf080273255a25685270389fd6 (diff) |
xcursor-manager: drop wlr_xcursor_manager_set_cursor_image()
-rw-r--r-- | include/wlr/types/wlr_xcursor_manager.h | 12 | ||||
-rw-r--r-- | types/wlr_xcursor_manager.c | 17 |
2 files changed, 0 insertions, 29 deletions
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 <wayland-server-core.h> -#include <wlr/types/wlr_cursor.h> #include <wlr/xcursor.h> /** @@ -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); - } -} |