From 312eeaeb34291428bd7e7732b4781fbc8ea9ebd1 Mon Sep 17 00:00:00 2001 From: ItsDrike Date: Fri, 31 Mar 2023 23:57:34 +0200 Subject: [PATCH] Fix using wrong getNodeFromWindow function with findFunctionsByName --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index bffef91..14d0c4a 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -99,7 +99,7 @@ APICALL EXPORT PLUGIN_DESCRIPTION_INFO PLUGIN_INIT(HANDLE handle) // Get address of the private CHyprDwindleLayout::getNodeFromWindow member function, we'll need it in toggleGroup static const auto METHODS = HyprlandAPI::findFunctionsByName(PHANDLE, "getNodeFromWindow"); - g_pNodeFromWindow = (nodeFromWindowT)METHODS[0].address; + g_pNodeFromWindow = (nodeFromWindowT)METHODS[1].address; originalToggleGroup = g_pKeybindManager->m_mDispatchers["togglegroup"]; HyprlandAPI::addDispatcher(PHANDLE, "togglegroup", toggleGroup);