mirror of
https://codeberg.org/dnkl/yambar.git
synced 2025-06-16 08:15:40 +02:00
bar: do generic cursor stuff in bar, not in backend
This commit is contained in:
parent
0684aaaf95
commit
7f1567c973
2 changed files with 7 additions and 6 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue