mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-21 16:05:02 +02:00
When multiple confirmable close requests are made focus the existing close confirmation window instead of opening a new one for each request
Fixes #6601
This commit is contained in:
@@ -124,6 +124,7 @@ class Tab: # {{{
|
||||
active_bg: Optional[int] = None
|
||||
inactive_fg: Optional[int] = None
|
||||
inactive_bg: Optional[int] = None
|
||||
confirm_close_window_id: int = 0
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
@@ -848,6 +849,8 @@ class Tab: # {{{
|
||||
|
||||
class TabManager: # {{{
|
||||
|
||||
confirm_close_window_id: int = 0
|
||||
|
||||
def __init__(self, os_window_id: int, args: CLIOptions, wm_class: str, wm_name: str, startup_session: Optional[SessionType] = None):
|
||||
self.os_window_id = os_window_id
|
||||
self.wm_class = wm_class
|
||||
|
||||
Reference in New Issue
Block a user