https://bugs.documentfoundation.org/show_bug.cgi?id=41775
--- Comment #30 from Patrick (volunteer) <[email protected]> --- (In reply to Dennis Roczek from comment #29) > I just want to add: NeoOffice keeps the menu entry "Tools" and "Help" when > closing all windows. I doubt I'll use the NeoOffice approach as that implementation was both overly complicated and quite hacky as I wrote it back in 2005 (can't believe that was nearly 20 years ago). Back then, the goal in NeoOffice was to never show the Start Center. Don't know why, but it was unpopular back in the hack I used was to make the Start Center a 1x1 pixel window with no titlebar that "hides" behind the macOS menubar. The idea was to show the Start Center in the menubar without showing the Start Center window. Managing the 1x1 pixel window proved to be very fragile as I ended up having to keep fixing the code after most new macOS releases. Anyway, after I posted comment #28 I thought of another, simpler possible way to implement this. The Start Center and its menus get initialized early in the LibreOffice launch process. LibreOffice's macOS code also has a "default menus" which are the menus (currently only a single File menu) that LibreOffice sets the menubar to when no windows are visible. My current idea is to modify the Start Center's initialization code so that when it loads its menus, the code also sets "default menubar menus" to the same menus. My guess is that most of the code changes will be figuring out how to wire that up. Unfortunately, I need to finish my work a few other bugs and before I start work on this, so I haven't looked too closely at the code yet. But if my current idea works, the Start Center's menus also become the "no windows default menus". -- You are receiving this mail because: You are the assignee for the bug.
