source: ignore send... requests when resource is null

This commit is contained in:
Vaxry 2024-06-07 13:29:43 +02:00
parent f84ca21ed8
commit 46faf3edc2

View file

@ -598,6 +598,8 @@ static const void* {}[] = {{
SOURCE += std::format(R"#(
void {}::{}({}) {{
if (!pResource)
return;
wl_resource_post_event(pResource, {}{});
}}
)#",
@ -631,6 +633,8 @@ void {}::{}({}) {{
SOURCE += std::format(R"#(
void {}::{}({}) {{
if (!pResource)
return;
wl_resource_post_event(pResource, {}{});
}}
)#",