aboutsummaryrefslogtreecommitdiff
path: root/render.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2022-01-01 12:56:15 +0000
committerDaniel Eklöf <daniel@ekloef.se>2022-02-07 16:28:37 +0000
commite4f9dc7d581cf134e850bd02a9c4ae3e5989905a (patch)
tree1a448868b42aadf136bfd8384ce5bfc15b44b280 /render.h
parentrender: call wl_cursor_theme_get_cursor() earlier (diff)
render: add render_xcursor_is_valid()
Returns true if the provided cursor name is non-NULL, and exist in the currently loaded xcursor theme.
Diffstat (limited to 'render.h')
-rw-r--r--render.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/render.h b/render.h
index 644b4d00..d2c673ee 100644
--- a/render.h
+++ b/render.h
@@ -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;