Check if icon_buffer is created

This commit is contained in:
Aleksey Samoilov 2025-05-08 18:55:51 +04:00
parent c4ee58a81a
commit 9cf03289ec
1 changed files with 5 additions and 0 deletions

View File

@ -608,6 +608,11 @@ static bool wl_create_toplevel_icon(gfx_ctx_wayland_data_t *wl)
xdg_toplevel_icon_v1_add_buffer(
wl->xdg_toplevel_icon, icon_buffer->wl_buffer, 1);
}
else
{
RARCH_ERR("[Wayland] Failed to create toplevel icon buffer\n");
return false;
}
xdg_toplevel_icon_manager_v1_set_icon(
wl->xdg_toplevel_icon_manager, wl->xdg_toplevel, wl->xdg_toplevel_icon);