bar: set_cursor(): new interface function, to set the X cursor

Use this to explicitly set the initial/default cursor to "left_ptr"
This commit is contained in:
Daniel Eklöf 2018-12-26 17:16:54 +01:00
parent ce68bdb59d
commit 1b50808da5
3 changed files with 39 additions and 7 deletions

2
bar.h
View file

@ -13,7 +13,9 @@ struct bar {
void *private;
int (*run)(struct bar_run_context *ctx);
void (*destroy)(struct bar *bar);
void (*refresh)(const struct bar *bar);
void (*set_cursor)(struct bar *bar, const char *cursor);
};
enum bar_location { BAR_TOP, BAR_BOTTOM };