mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-08 22:28:24 +02:00
Accept window_id as an alias for id when matching
This commit is contained in:
@@ -425,7 +425,7 @@ class Window:
|
||||
return False
|
||||
assert not isinstance(pat, tuple)
|
||||
|
||||
if field == 'id':
|
||||
if field in ('id', 'window_id'):
|
||||
return True if pat.pattern == str(self.id) else False
|
||||
if field == 'pid':
|
||||
return True if pat.pattern == str(self.child.pid) else False
|
||||
|
||||
Reference in New Issue
Block a user