mirror of
				https://github.com/ItsDrike/hyprland-dwindle-autogroup.git
				synced 2025-11-04 01:16:36 +00:00 
			
		
		
		
	Move to using findFunctionsByName instead of compiler dependant getFunctionAddressFromSignature
This commit is contained in:
		
							parent
							
								
									7eca164413
								
							
						
					
					
						commit
						6caef995d1
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -97,9 +97,9 @@ APICALL EXPORT PLUGIN_DESCRIPTION_INFO PLUGIN_INIT(HANDLE handle)
 | 
			
		|||
{
 | 
			
		||||
    PHANDLE = handle;
 | 
			
		||||
 | 
			
		||||
    // Get address of the private CHyprDwindleLayout::getNodeFromWindow, we'll need it in toggleGroup
 | 
			
		||||
    g_pNodeFromWindow =
 | 
			
		||||
        (nodeFromWindowT)HyprlandAPI::getFunctionAddressFromSignature(PHANDLE, "_ZN18CHyprDwindleLayout17getNodeFromWindowEP7CWindow");
 | 
			
		||||
    // 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;
 | 
			
		||||
 | 
			
		||||
    originalToggleGroup = g_pKeybindManager->m_mDispatchers["togglegroup"];
 | 
			
		||||
    HyprlandAPI::addDispatcher(PHANDLE, "togglegroup", toggleGroup);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue