Skip to content

Commit

Permalink
hyprwinwrap: Fix crashing hyprland with some apps (#201)
Browse files Browse the repository at this point in the history
  • Loading branch information
dotaxis authored Jul 19, 2024
1 parent 928164d commit f23d3eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hyprwinwrap/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand All @@ -176,4 +176,4 @@ APICALL EXPORT PLUGIN_DESCRIPTION_INFO PLUGIN_INIT(HANDLE handle) {

APICALL EXPORT void PLUGIN_EXIT() {
;
}
}

0 comments on commit f23d3eb

Please sign in to comment.