Skip to content

fix(switcher): return to previous window across desktops - #33

Open
cyenxchen wants to merge 1 commit into
zshnb:mainfrom
cyenxchen:fix/previous-window-across-desktops
Open

cyenxchen wants to merge 1 commit into
zshnb:mainfrom
cyenxchen:fix/previous-window-across-desktops

Conversation

@cyenxchen

Copy link
Copy Markdown
Contributor

开启"显示所有桌面的窗口"后,切换器按桌面分组排列,上一个使用的窗口不一定在第二行,⌘Tab 一下回不到它。

改动:

  • 开始切换时,按最近使用顺序选中"上一个窗口",不再固定选第二行。
  • 切换跨桌面时,过渡中短暂获得焦点的窗口不会打乱最近使用顺序。
  • 已适配分组模式:先按当前分组筛选窗口,再选中上一个窗口。
  • 新增 RecentWindowOrder 及对应单测。

With windows from all desktops shown, the switcher groups rows by desktop,
so the previously used window was no longer in the second row. Select the
most recently used window that is not focused instead of a fixed row.

Keep the target of a requested switch at the front of the recent order
until it is observed as focused, so windows briefly focused during a
desktop transition no longer push the previous window out of second place.
@cyenxchen
cyenxchen force-pushed the fix/previous-window-across-desktops branch from e0049e8 to 1a19b8b Compare November 23, 2026 05:31

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant