add master:new_on_top
This commit is contained in:
parent
1848086abd
commit
6f1b9d6af9
2 changed files with 4 additions and 1 deletions
|
|
@ -37,7 +37,9 @@ void CHyprMasterLayout::onWindowCreatedTiling(CWindow* pWindow) {
|
|||
if (pWindow->m_bIsFloating)
|
||||
return;
|
||||
|
||||
const auto PNODE = &m_lMasterNodesData.emplace_back();
|
||||
static auto *const PNEWTOP = &g_pConfigManager->getConfigValuePtr("master:new_on_top")->intValue;
|
||||
|
||||
const auto PNODE = *PNEWTOP ? &m_lMasterNodesData.emplace_front() : &m_lMasterNodesData.emplace_back();
|
||||
|
||||
PNODE->workspaceID = pWindow->m_iWorkspaceID;
|
||||
PNODE->pWindow = pWindow;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue