From 47da8973a4225de59ac1bb344ee1a541f0874ff1 Mon Sep 17 00:00:00 2001 From: dogisgreat Date: Sun, 22 Dec 2024 22:21:46 -0800 Subject: [PATCH] wm --- chadtree/transitions/shared/wm.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/chadtree/transitions/shared/wm.py b/chadtree/transitions/shared/wm.py index db509e93c..172c77f3f 100644 --- a/chadtree/transitions/shared/wm.py +++ b/chadtree/transitions/shared/wm.py @@ -53,7 +53,8 @@ async def is_fm_window(win: Window) -> bool: async def find_windows_in_tab( last_used: Mapping[ExtData, None], no_secondary: bool ) -> AsyncIterator[Window]: - ordering = {win_id: idx for idx, win_id in enumerate(reversed(last_used.keys()))} + keys = cast(Sequence[ExtData], last_used.keys()) + ordering = {win_id: idx for idx, win_id in enumerate(reversed(keys))} tab = await Tabpage.get_current() wins = await tab.list_wins()