Here is a series of patches 1) which add an open-in-window mode (enabled on Mac by default) 2) which keep LyX running, even after closing the last window on Mac 3) which close a window when the last tab is closed on Mac 3) which add a preference option to change (1)
For (2) I keep the GuiView with id 0 in memory and only hide it. It is then reused when the user requests another window.
Stefan
0001-put-group-layout-list-option-into-tab-list.patch
Description: Binary data
0002-we-have-not-only-one-instance-of-the-menu-bar.-Hen.patch
Description: Binary data
0003-on-Mac-keep-the-GuiView-with-id-0-hidden-in-memory.patch
Description: Binary data
0004-add-mode-to-open-new-and-loaded-documents-in-new-w.patch
Description: Binary data