Diff
1diff --git a/src/Hy3Layout.cpp b/src/Hy3Layout.cpp
2index bd476eaa743005e26013e19ec41b08d6d7e5526c..ced8dbdf2debc23156601eae2d5aaf885c995305 100644
3--- a/src/Hy3Layout.cpp
4+++ b/src/Hy3Layout.cpp
5@@ -888,7 +888,7 @@ void Hy3Layout::alterSplitRatio(CWindow* pWindow, float delta, bool exact) {
6 }
7
8 std::string Hy3Layout::getLayoutName() {
9- return "custom";
10+ return "hy3";
11 }
12
13 void Hy3Layout::replaceWindowDataWith(CWindow* from, CWindow* to) {
14@@ -896,15 +896,19 @@ void Hy3Layout::replaceWindowDataWith(CWindow* from, CWindow* to) {
15 }
16
17 void Hy3Layout::onEnable() {
18- for (auto& w : g_pCompositor->m_vWindows) {
19- if (w->isHidden() || !w->m_bIsMapped || w->m_bFadingOut || w->m_bIsFloating)
20- continue;
21-
22- this->onWindowCreatedTiling(w.get());
23- }
24+ for (auto &window : g_pCompositor->m_vWindows) {
25+ if (window->isHidden()
26+ || !window->m_bIsMapped
27+ || window->m_bFadingOut
28+ || window->m_bIsFloating)
29+ continue;
30+
31+ this->onWindowCreatedTiling(window.get());
32+ }
33 }
34
35 void Hy3Layout::onDisable() {
36+ this->nodes.clear();
37 }
38
39 void Hy3Layout::makeGroupOn(CWindow* window, Hy3GroupLayout layout) {