mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-24 17:27:39 +02:00
Add a couple more states to match against
So we can now select windows/tabs that are not active/focused but are in the active/focused tab/os window.
This commit is contained in:
@@ -717,6 +717,10 @@ class Tab: # {{{
|
||||
for w in self:
|
||||
if w.needs_attention:
|
||||
return True
|
||||
if query == 'parent_active':
|
||||
return active_tab_manager is not None and self.tab_manager_ref() is active_tab_manager
|
||||
if query == 'parent_focused':
|
||||
return active_tab_manager is not None and self.tab_manager_ref() is active_tab_manager and self.os_window_id == current_os_window()
|
||||
return False
|
||||
return False
|
||||
|
||||
|
||||
Reference in New Issue
Block a user