mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-06 23:21:57 -07:00
master: fix invalid config usage
This commit is contained in:
@@ -43,9 +43,9 @@ SMasterWorkspaceData* CHyprMasterLayout::getMasterWorkspaceData(const int& ws) {
|
|||||||
//create on the fly if it doesn't exist yet
|
//create on the fly if it doesn't exist yet
|
||||||
const auto PWORKSPACEDATA = &m_lMasterWorkspacesData.emplace_back();
|
const auto PWORKSPACEDATA = &m_lMasterWorkspacesData.emplace_back();
|
||||||
PWORKSPACEDATA->workspaceID = ws;
|
PWORKSPACEDATA->workspaceID = ws;
|
||||||
const auto orientation = (Hyprlang::STRING const*)g_pConfigManager->getConfigValuePtr("master:orientation");
|
static auto PORIENTATION = CConfigValue<std::string>("master:orientation");
|
||||||
const auto layoutoptsForWs = g_pConfigManager->getWorkspaceRuleFor(g_pCompositor->getWorkspaceByID(ws)).layoutopts;
|
const auto layoutoptsForWs = g_pConfigManager->getWorkspaceRuleFor(g_pCompositor->getWorkspaceByID(ws)).layoutopts;
|
||||||
std::string orientationForWs = *orientation;
|
std::string orientationForWs = *PORIENTATION;
|
||||||
|
|
||||||
if (layoutoptsForWs.contains("orientation"))
|
if (layoutoptsForWs.contains("orientation"))
|
||||||
orientationForWs = layoutoptsForWs.at("orientation");
|
orientationForWs = layoutoptsForWs.at("orientation");
|
||||||
|
Reference in New Issue
Block a user