mirror of
https://codeberg.org/dnkl/yambar.git
synced 2025-04-24 04:45:41 +02:00
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
|
||||
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;
|
||||
}
|
||||
|
||||
struct wl_cursor_image *image = seat->pointer.cursor->images[0];
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue