forked from external/yambar
bar/wayland: don't try to set cursor surface if serial is 0
This commit is contained in:
parent
74933c40ee
commit
e38f593acd
1 changed files with 5 additions and 1 deletions
|
@ -150,8 +150,12 @@ static const struct wl_shm_listener shm_listener = {
|
||||||
static void
|
static void
|
||||||
update_cursor_surface(struct wayland_backend *backend, struct seat *seat)
|
update_cursor_surface(struct wayland_backend *backend, struct seat *seat)
|
||||||
{
|
{
|
||||||
if (seat->pointer.cursor == NULL || seat->pointer.surface == NULL)
|
if (seat->pointer.serial == 0 ||
|
||||||
|
seat->pointer.cursor == NULL ||
|
||||||
|
seat->pointer.surface == NULL)
|
||||||
|
{
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
struct wl_cursor_image *image = seat->pointer.cursor->images[0];
|
struct wl_cursor_image *image = seat->pointer.cursor->images[0];
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue