I also have on my windows with the CB workspace (which is not doing the GLOB thing).
When loading the : CodeBlocks_wx32_64.workspace
Where the layout file related to it has the content:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<CodeBlocks_workspace_layout_file>
<FileVersion major="1" minor="0" />
<ActiveProject path="CodeBlocks_wx32_64.cbp" />
</CodeBlocks_workspace_layout_file>
The only file open in the editor is : pdfpattern.h.
When I close that editor, then close CB, restart CB, and openthe workspace again ==> the editor is back.
Note that the content of : CodeBlocks_wx32_64.layout
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<CodeBlocks_layout_file>
<FileVersion major="1" minor="0" />
<ActiveTarget name="All" />
<File name="include\compiler.h" open="0" top="0" tabpos="1" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
<Cursor>
<Cursor1 position="11974" topLine="267" />
</Cursor>
</File>
<File name="plugins\compilergcc\compilergcc.cpp" open="0" top="0" tabpos="3" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
<Cursor>
<Cursor1 position="130380" topLine="3644" />
</Cursor>
</File>
<File name="sdk\compiler.cpp" open="0" top="0" tabpos="2" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
<Cursor>
<Cursor1 position="33905" topLine="739" />
</Cursor>
</File>
</CodeBlocks_layout_file>
Something completely different ... and these are not opened ...
Another thing : when right clicking on the editor tab and choose , show file in the project tree ==> nothing happens, or at least no result (something I have discovered already many times in my day to day use with CB (which is most based on the globbing feature).
When drilling down to src\plugins\contrib\source_exporter
--> Exporter_wx32_64.layout
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<CodeBlocks_layout_file>
<FileVersion major="1" minor="0" />
<ActiveTarget name="All" />
<File name="wxPdfDocument\include\wx\pdfpattern.h" open="1" top="0" tabpos="0" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
<Cursor>
<Cursor1 position="0" topLine="0" />
</Cursor>
</File>
</CodeBlocks_layout_file>
Indeed closing the editor ==> no change happens to this layout file.
Note this is not the active project, but that should not matter, when a file is closed , it should not re-open next time .... right ?