mirror of
https://github.com/hyprwm/hyprwayland-scanner.git
synced 2024-11-24 15:55:58 +01:00
source: ignore send... requests when resource is null
This commit is contained in:
parent
f84ca21ed8
commit
46faf3edc2
1 changed files with 4 additions and 0 deletions
|
@ -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, {}{});
|
||||
}}
|
||||
)#",
|
||||
|
|
Loading…
Reference in a new issue