Unhide all nodes on layout disable

Fixes all tabbed nodes disappearing on update / layout switch
This commit is contained in:
outfoxxed 2023-06-12 00:27:44 -07:00
parent cb90e44c1d
commit 56de6b5c48
No known key found for this signature in database
GPG key ID: 4C88A185FB89301E

View file

@ -1338,6 +1338,13 @@ void Hy3Layout::onDisable() {
HyprlandAPI::unregisterCallback(PHANDLE, urgentHookPtr.get());
HyprlandAPI::unregisterCallback(PHANDLE, tickHookPtr.get());
selection_hook::disable();
for (auto& node: this->nodes) {
if (node.data.type == Hy3NodeData::Window) {
node.data.as_window->setHidden(false);
}
}
this->nodes.clear();
}