Alexandros Frantzis (@afrantzis) commented about dlls/winewayland.drv/wayland_surface.c:
- }
- if (icon_buf)
- {
surface->xdg_toplevel_icon = xdg_toplevel_icon_manager_v1_create_icon(process_wayland.xdg_toplevel_icon_manager_v1);
if (type == ICON_BIG) surface->big_icon_buffer = icon_buf;
else surface->small_icon_buffer = icon_buf;
/* FIXME: what to do with scale ? */
if (surface->big_icon_buffer) xdg_toplevel_icon_v1_add_buffer(surface->xdg_toplevel_icon, surface->big_icon_buffer->wl_buffer, 1);
if (surface->small_icon_buffer) xdg_toplevel_icon_v1_add_buffer(surface->xdg_toplevel_icon, surface->small_icon_buffer->wl_buffer, 1);
xdg_toplevel_icon_v1_set_name(surface->xdg_toplevel_icon, "");
xdg_toplevel_icon_manager_v1_set_icon(process_wayland.xdg_toplevel_icon_manager_v1, surface->xdg_toplevel, surface->xdg_toplevel_icon);
Lets make this line shorter too like above.