mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-23 21:45:58 +01:00
rename CLayoutManager::getCurrentLayout to getCurrentGlobalLayout to break old api
This commit is contained in:
parent
37f2bbac07
commit
1893f18504
3 changed files with 5 additions and 5 deletions
|
@ -511,5 +511,5 @@ bool CWorkspace::inert() {
|
|||
}
|
||||
|
||||
IHyprLayout* CWorkspace::getCurrentLayout() {
|
||||
return g_pLayoutManager->getCurrentLayout();
|
||||
return g_pLayoutManager->getCurrentGlobalLayout();
|
||||
}
|
||||
|
|
|
@ -5,7 +5,7 @@ CLayoutManager::CLayoutManager() {
|
|||
m_vLayouts.emplace_back(std::make_pair<>("master", &m_cMasterLayout));
|
||||
}
|
||||
|
||||
IHyprLayout* CLayoutManager::getCurrentLayout() {
|
||||
IHyprLayout* CLayoutManager::getCurrentGlobalLayout() {
|
||||
return m_vLayouts[m_iCurrentLayoutID].second;
|
||||
}
|
||||
|
||||
|
@ -15,9 +15,9 @@ void CLayoutManager::switchToLayout(std::string layout) {
|
|||
if (i == (size_t)m_iCurrentLayoutID)
|
||||
return;
|
||||
|
||||
getCurrentLayout()->onDisable();
|
||||
getCurrentGlobalLayout()->onDisable();
|
||||
m_iCurrentLayoutID = i;
|
||||
getCurrentLayout()->onEnable();
|
||||
getCurrentGlobalLayout()->onEnable();
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -7,7 +7,7 @@ class CLayoutManager {
|
|||
public:
|
||||
CLayoutManager();
|
||||
|
||||
IHyprLayout* getCurrentLayout();
|
||||
IHyprLayout* getCurrentGlobalLayout();
|
||||
|
||||
void switchToLayout(std::string);
|
||||
|
||||
|
|
Loading…
Reference in a new issue