core: fix overzealous proxy replacement for new_id

This commit is contained in:
Vaxry 2024-09-20 14:13:20 +01:00
parent eebf1cb749
commit 96d33362e6

View file

@ -112,9 +112,10 @@ std::string WPTypeToCType(const SRequestArgument& arg, bool event /* events pass
if (e.nameOriginal == arg.enumName)
return e.name;
}
return "uint32_t";
}
if (!event && clientCode)
if (!event && clientCode && arg.wlType == "new_id")
return "wl_proxy*";
// iface