bar: do generic cursor stuff in bar, not in backend

This commit is contained in:
Daniel Eklöf 2019-01-29 21:05:28 +01:00
parent 0684aaaf95
commit 7f1567c973
2 changed files with 7 additions and 6 deletions

View file

@ -156,6 +156,13 @@ static void
set_cursor(struct bar *bar, const char *cursor)
{
struct private *b = bar->private;
if (b->cursor_name != NULL && strcmp(b->cursor_name, cursor) == 0)
return;
free(b->cursor_name);
b->cursor_name = strdup(cursor);
b->backend.iface->set_cursor(bar, cursor);
}