Fix for latest hyprland (hyprlang migration)

This commit is contained in:
ItsDrike 2024-02-18 17:21:41 +01:00
parent 151f4b88bc
commit ef77c5db1f
Signed by: ItsDrike
GPG key ID: FA2745890B7048C0

View file

@ -49,7 +49,8 @@ void moveIntoGroup(CWindow* pWindow, CWindow* pGroupHeadWindow)
{
const auto P_LAYOUT = g_pLayoutManager->getCurrentLayout();
const auto* USE_CURR_POS = &g_pConfigManager->getConfigValuePtr("misc:group_insert_after_current")->intValue;
const auto* USE_CURR_POS = (Hyprlang::INT* const*)g_pConfigManager->getConfigValuePtr("group:insert_after_current");
CWindow* pGroupWindow = *USE_CURR_POS ? pGroupHeadWindow : pGroupHeadWindow->getGroupTail();
// Remove the window from layout (will become a part of a group)