diff --git a/src/debug/HyprCtl.cpp b/src/debug/HyprCtl.cpp index 01e49e746..4772894f3 100644 --- a/src/debug/HyprCtl.cpp +++ b/src/debug/HyprCtl.cpp @@ -1773,7 +1773,7 @@ static std::string dispatchGetOption(eHyprCtlOutputFormat format, std::string re else if (TYPE == typeid(Config::STRING)) return std::format("str: {}\nset: {}", **rc(VAL), VAR.setByUser); else if (TYPE == typeid(void*)) - return std::format("custom type: {}\nset: {}", (*rc(VAL))->toString(), VAR.setByUser); + return std::format("custom type: {}\nset: {}", rc((*rc(VAL))->getData())->toString(), VAR.setByUser); } else { if (TYPE == typeid(Config::INTEGER)) return std::format(R"({{"option": "{}", "int": {}, "set": {} }})", curitem, **rc(VAL), VAR.setByUser); @@ -1787,7 +1787,8 @@ static std::string dispatchGetOption(eHyprCtlOutputFormat format, std::string re else if (TYPE == typeid(Config::STRING)) return std::format(R"({{"option": "{}", "str": "{}", "set": {} }})", curitem, **rc(VAL), VAR.setByUser); else if (TYPE == typeid(void*)) - return std::format(R"({{"option": "{}", "custom": "{}", "set": {} }})", curitem, (*rc(VAL))->toString(), VAR.setByUser); + return std::format(R"({{"option": "{}", "custom": "{}", "set": {} }})", curitem, + rc((*rc(VAL))->getData())->toString(), VAR.setByUser); } return "invalid type (internal error)";