Skip to content

No Window Close Confirmation When Closing Last Window #4195

@atomdmac

Description

@atomdmac

Describe the bug
Closing the last window in a tab does not prompt the user with a confirmation message even if confirm_os_window_close 1 is set.

To Reproduce
Steps to reproduce the behavior:

  • Ensure that confirm_os_window_close 1 is set in your kitty.conf
  • Open a Kitty tab with a single window in it
  • Issue a close_window command
  • Notice that the OS window closes without showing a confirmation message

Screenshots
N / A

Environment details

kitty 0.23.1 created by Kovid Goyal
Darwin 18.7.0 Darwin Kernel Version 18.7.0: Mon May  3 20:41:19 PDT 2021; root:xnu-4903.278.68~1/RELEASE_X86_64 x86_64
ProductName:	Mac OS X ProductVersion:	10.14.6 BuildVersion:	18G9216
Loaded config files:
  /Users/USER_NAME/.config/kitty/kitty.conf

Config options different from defaults:
confirm_os_window_close            1
enable_audio_bell                  False
enabled_layouts                    ['tall:bias=50;full_size=1;mirrored=false']
font_family                        Hasklug NF, Fallback
font_size                          14.0
macos_quit_when_last_window_closed True
scrollback_lines                   4000
tab_bar_edge                       1
tab_bar_style                      slant
visual_bell_duration               0.25
window_border_width                (0, 'pt')
window_margin_width                FloatEdges(left=2.5, top=2.5, right=2.5, bottom=2.5)
Added shortcuts:
	ctrl+f KeyAction('launch', ('--type=overlay', '--stdin-source=@screen_scrollback', '/usr/local/bin/fzf', '--no-sort', '--no-mouse', '--exact', '-i'))
	cmd+d KeyAction('detach_tab', ('ask',))
	cmd+left KeyAction('neighboring_window', ('left',))
	cmd+right KeyAction('neighboring_window', ('right',))
Changed shortcuts:
	cmd+1 KeyAction('goto_tab', (1,))
	cmd+2 KeyAction('goto_tab', (2,))
	cmd+3 KeyAction('goto_tab', (3,))
	cmd+4 KeyAction('goto_tab', (4,))
	cmd+5 KeyAction('goto_tab', (5,))
	cmd+6 KeyAction('goto_tab', (6,))
	cmd+7 KeyAction('goto_tab', (7,))
	cmd+8 KeyAction('goto_tab', (8,))
	cmd+9 KeyAction('goto_tab', (9,))
	cmd+n KeyAction('new_os_window_with_cwd')
	cmd+up KeyAction('neighboring_window', ('top',))
	cmd+down KeyAction('neighboring_window', ('bottom',))
Colors:
	background                         #333333   

Additional context
Try to reproduce the problem with kitty --config NONE if you cannot then post a minimal kitty.conf that reproduces the problem. If the problem involves interaction with some other terminal program post a minimal config for that program to reproduce the problem as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions