diff options
| -rw-r--r-- | render.c | 8 | ||||
| -rw-r--r-- | render.h | 4 |
2 files changed, 11 insertions, 1 deletions
@@ -3801,6 +3801,14 @@ static const struct wl_callback_listener xcursor_listener = { .done = &xcursor_callback, }; +bool +render_xcursor_is_valid(const struct seat *seat, const char *cursor) +{ + if (cursor == NULL) + return false; + return wl_cursor_theme_get_cursor(seat->pointer.theme, cursor) != NULL; +} + static void render_xcursor_update(struct seat *seat) { @@ -18,7 +18,9 @@ void render_refresh_csd(struct terminal *term); void render_refresh_search(struct terminal *term); void render_refresh_title(struct terminal *term); void render_refresh_urls(struct terminal *term); -bool render_xcursor_set(struct seat *seat, struct terminal *term, const char *xcursor); +bool render_xcursor_set( + struct seat *seat, struct terminal *term, const char *xcursor); +bool render_xcursor_is_valid(const struct seat *seat, const char *cursor); struct render_worker_context { int my_id; |
