mirror of
https://github.com/hyprwm/hyprland-plugins.git
synced 2024-12-21 22:49:48 +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) {
|
||||
if (!fn.demangled.contains("CSubsurface"))
|
||||
continue;
|
||||
subsurfaceHook = HyprlandAPI::createFunctionHook(PHANDLE, fns[0].address, (void*)&onCommitSubsurface);
|
||||
subsurfaceHook = HyprlandAPI::createFunctionHook(PHANDLE, fn.address, (void*)&onCommitSubsurface);
|
||||
}
|
||||
|
||||
fns = HyprlandAPI::findFunctionsByName(PHANDLE, "listener_commitWindow");
|
||||
|
@ -176,4 +176,4 @@ APICALL EXPORT PLUGIN_DESCRIPTION_INFO PLUGIN_INIT(HANDLE handle) {
|
|||
|
||||
APICALL EXPORT void PLUGIN_EXIT() {
|
||||
;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue