From ef77c5db1f69e68dd1ce8a7c55d7393936ea9301 Mon Sep 17 00:00:00 2001 From: ItsDrike Date: Sun, 18 Feb 2024 17:21:41 +0100 Subject: [PATCH] Fix for latest hyprland (hyprlang migration) --- src/plugin.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugin.cpp b/src/plugin.cpp index d79046d..5d1306e 100644 --- a/src/plugin.cpp +++ b/src/plugin.cpp @@ -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)