mirror of
https://github.com/hyprwm/hyprwayland-scanner.git
synced 2024-11-22 23:45:58 +01:00
source: fix including ->pResource under non-new_id resources
This commit is contained in:
parent
1c9ed159e1
commit
e60b1bb9a1
1 changed files with 1 additions and 1 deletions
|
@ -502,7 +502,7 @@ static const void* {}[] = {{
|
||||||
|
|
||||||
std::string argsN = ", ";
|
std::string argsN = ", ";
|
||||||
for (auto& arg : ev.args) {
|
for (auto& arg : ev.args) {
|
||||||
if (arg.interface.empty())
|
if (arg.interface.empty() || arg.wlType != "new_id")
|
||||||
argsN += arg.name + ", ";
|
argsN += arg.name + ", ";
|
||||||
else
|
else
|
||||||
argsN += arg.name + "->pResource, ";
|
argsN += arg.name + "->pResource, ";
|
||||||
|
|
Loading…
Reference in a new issue