mirror of
https://github.com/neovide/neovide.git
synced 2026-09-10 07:16:25 -04:00
First, we now set a sane default window title we already handle title updates from nvim, but the default startup behavior was still effectively "call everything Neovide" until otherwise. that's not very useful. now, if the user hasn't configured either 'title' or 'titlestring', we enable titles and use "%F" so the window follows the current path. *but we don't override user configuration. if either option was already set, we leave it alone. --- The second, "title-hidden" means "don't show the title", not "make the window stop having one" On macOS we got that wrong. when title hiding was enabled, we hid the title visually and then also **cleared** the underlying NSWindow title by setting it to an empty string. That broke the native bookkeeping for secondary windows. The window itself was created fine and the native tab showed up, but AppKit no longer had a real title to use for the Window menu entry. So the second window ended up effectively unnamed there. we fix it by leaving the NSWindow title alone. keep the title hidden from the titlebar, but preserve it for the platform APIs that actually need it. |
||
|---|---|---|
| .. | ||
| exit_handler.lua | ||
| init.lua | ||