mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-05-13 16:37:27 +00:00
cleanup
This commit is contained in:
parent
09ff0b1c52
commit
9a2de7bf66
1 changed files with 1 additions and 5 deletions
|
|
@ -503,11 +503,7 @@ class Boss:
|
|||
|
||||
def serialize_state_as_session(self) -> Iterator[str]:
|
||||
s = {current_focused_os_window_id(): 2, last_focused_os_window_id(): 1}
|
||||
|
||||
def skey(os_window_id: int) -> int:
|
||||
return s.get(os_window_id, 0)
|
||||
|
||||
for i, os_window_id in enumerate(sorted(self.os_window_map, key=skey)):
|
||||
for i, os_window_id in enumerate(sorted(self.os_window_map, key=lambda wid: s.get(wid, 0))):
|
||||
tm = self.os_window_map[os_window_id]
|
||||
yield from tm.serialize_state_as_session(is_first=i==0)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue