mirror of
https://github.com/hyprwm/hyprland-plugins.git
synced 2024-11-22 10:35:58 +01:00
hyprwinwrap: Fix crashing hyprland with some apps (#201)
This commit is contained in:
parent
928164d6d2
commit
f23d3ebd92
1 changed files with 2 additions and 2 deletions
|
@ -153,7 +153,7 @@ APICALL EXPORT PLUGIN_DESCRIPTION_INFO PLUGIN_INIT(HANDLE handle) {
|
||||||
for (auto& fn : fns) {
|
for (auto& fn : fns) {
|
||||||
if (!fn.demangled.contains("CSubsurface"))
|
if (!fn.demangled.contains("CSubsurface"))
|
||||||
continue;
|
continue;
|
||||||
subsurfaceHook = HyprlandAPI::createFunctionHook(PHANDLE, fns[0].address, (void*)&onCommitSubsurface);
|
subsurfaceHook = HyprlandAPI::createFunctionHook(PHANDLE, fn.address, (void*)&onCommitSubsurface);
|
||||||
}
|
}
|
||||||
|
|
||||||
fns = HyprlandAPI::findFunctionsByName(PHANDLE, "listener_commitWindow");
|
fns = HyprlandAPI::findFunctionsByName(PHANDLE, "listener_commitWindow");
|
||||||
|
|
Loading…
Reference in a new issue