Rescue the client window group instead of the client window on unsplitting.
Also small stuff I stumbled upon.
Someone who knows what they are doing should review this. It might fail spectacularly in some cases.
I have no clue why every client window is managed by a client window group.
Generating a graph of the objects and managing relation helped debugging the issue:
echo "digraph managing {$(notionflux << EOF | grep -v '^nil$'
function label(sub)
return tostring(sub) .. (sub:name() and " (" .. sub:name() .. ")" or "");
end
function dump(sub)
print("\"" .. label(sub:manager()) .. "\" -> \"" .. label(sub) .. "\";");
return true;
end
notioncore.clientwin_i(dump)
notioncore.region_i(dump)
EOF
)}" | dot -Tpng -o /tmp/graph.png
Rescue the client window group instead of the client window on unsplitting. Also small stuff I stumbled upon.
Someone who knows what they are doing should review this. It might fail spectacularly in some cases. I have no clue why every client window is managed by a client window group.
Generating a graph of the objects and managing relation helped debugging the issue:
fixes #316