wayland: unified error message for SDL_SetWindowIcon

This commit is contained in:
zanadoman 2026-05-21 18:28:31 +02:00
parent 3545bad589
commit 2188e99441

View file

@ -3263,7 +3263,7 @@ bool Wayland_SetWindowIcon(SDL_VideoDevice *_this, SDL_Window *window, SDL_Surfa
struct xdg_toplevel *toplevel = NULL;
if (!_this->internal->xdg_toplevel_icon_manager_v1) {
return SDL_SetError("wayland: cannot set icon; required xdg_toplevel_icon_v1 protocol not supported");
return SDL_Unsupported();
}
int image_count = 0;