Add an option to control quit on last window behavior

This commit is contained in:
Kovid Goyal
2018-06-07 08:03:47 +05:30
parent 23d089b4be
commit b9dd434fab
5 changed files with 14 additions and 5 deletions

View File

@@ -657,14 +657,12 @@ probably better off just hiding the titlebar with :opt:`macos_hide_titlebar`.
o('macos_hide_titlebar', False, long_text=_('''
Hide the kitty window's title bar on macOS.'''))
o('x11_hide_window_decorations', False, long_text=_('''
Hide the window decorations (title bar and window borders) on X11 and Wayland.
Whether this works and exactly what effect it has depends on the window
manager, as it is the job of the window manager/compositor to draw window
decorations.'''))
o('macos_option_as_alt', True, long_text=_('''
Use the option key as an alt key. With this set to no, kitty will use
the macOS native :kbd:`Option+Key` = unicode character behavior. This will
@@ -676,6 +674,12 @@ o('macos_hide_from_tasks', False, long_text=_('''
Hide the kitty window from running tasks (:kbd:`Option+Tab`) on macOS.
'''))
o('macos_quit_when_last_window_closed', False, long_text=_('''
Have kitty quit when all the top-level windows are closed. By default,
kitty will stay running, even with no open windows, as is the expected
behavior on macOS.
'''))
# }}}