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:
Daniel Eklöf 2020-07-09 19:02:02 +02:00
parent 5884e665a4
commit f04b1e806c
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
4 changed files with 24 additions and 40 deletions

View file

@ -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);
}