bar/wayland: set-cursor: don't skip out if "old" xcursor is same as "new"

We might be setting on a different seat than before.
This commit is contained in:
Daniel Eklöf 2020-07-09 18:55:04 +02:00
parent 13c2b8296d
commit 5884e665a4
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -184,9 +184,6 @@ set_cursor(struct bar *_bar, const char *_cursor)
struct private *bar = _bar->private; struct private *bar = _bar->private;
struct wayland_backend *backend = bar->backend.data; struct wayland_backend *backend = bar->backend.data;
if (backend->xcursor == _cursor && _cursor != NULL)
return;
const char *cursor = _cursor != NULL ? _cursor : backend->xcursor; const char *cursor = _cursor != NULL ? _cursor : backend->xcursor;
if (cursor == NULL) if (cursor == NULL)
return; return;