mirror of
https://github.com/ItsDrike/hyprland-dwindle-autogroup.git
synced 2024-11-13 20:07:17 +00:00
Fix using wrong getNodeFromWindow function with findFunctionsByName
This commit is contained in:
parent
5c56bd64ed
commit
312eeaeb34
|
@ -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
|
// Get address of the private CHyprDwindleLayout::getNodeFromWindow member function, we'll need it in toggleGroup
|
||||||
static const auto METHODS = HyprlandAPI::findFunctionsByName(PHANDLE, "getNodeFromWindow");
|
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"];
|
originalToggleGroup = g_pKeybindManager->m_mDispatchers["togglegroup"];
|
||||||
HyprlandAPI::addDispatcher(PHANDLE, "togglegroup", toggleGroup);
|
HyprlandAPI::addDispatcher(PHANDLE, "togglegroup", toggleGroup);
|
||||||
|
|
Loading…
Reference in a new issue