mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-31 03:43:49 -07:00
layoutmgr: don't reenable layout on unchanged layout
This commit is contained in:
@@ -12,6 +12,9 @@ IHyprLayout* CLayoutManager::getCurrentLayout() {
|
||||
void CLayoutManager::switchToLayout(std::string layout) {
|
||||
for (size_t i = 0; i < m_vLayouts.size(); ++i) {
|
||||
if (m_vLayouts[i].first == layout) {
|
||||
if (i == m_iCurrentLayoutID)
|
||||
return;
|
||||
|
||||
getCurrentLayout()->onDisable();
|
||||
m_iCurrentLayoutID = i;
|
||||
getCurrentLayout()->onEnable();
|
||||
|
Reference in New Issue
Block a user