mirror of
https://codeberg.org/dnkl/yambar.git
synced 2025-06-29 04:55:39 +02:00
bar: let backend check if xcursor should be updated or not
This allows the backend to support multi-seat "properly", by checking against the correct seat. Before this, when we used a single, global xcursor value, a seat whose pointer needed to be updated would not be updated.
This commit is contained in:
parent
5884e665a4
commit
f04b1e806c
4 changed files with 24 additions and 40 deletions
|
@ -154,13 +154,6 @@ 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