Deleting the last tab from a window surface using DockState::remove_tab doesn't delete the surface, which causes applications to crash on the following frame where DockArea attempts to render an empty window.
Solution: remove the window surface if its Tree is empty.
Fixes #206
Deleting the last tab from a window surface using
DockState::remove_tab
doesn't delete the surface, which causes applications to crash on the following frame whereDockArea
attempts to render an empty window.Solution: remove the window surface if its
Tree
is empty.