Skip to content

fix(switcher): stop window activation from waiting on background scans - #32

Open
cyenxchen wants to merge 1 commit into
zshnb:mainfrom
cyenxchen:fix/activation-queue
Open

cyenxchen wants to merge 1 commit into
zshnb:mainfrom
cyenxchen:fix/activation-queue

Conversation

@cyenxchen

Copy link
Copy Markdown
Contributor

快速按 ⌘Tab 切换时偶尔会有明显延迟。原因是激活窗口和每 0.4 秒一次的后台窗口扫描共用一个串行队列,切换刚好碰上扫描时,要等整轮扫描结束才执行。

改动:

  • 激活窗口改用独立的队列,不再排在扫描后面。
  • 新增 --activation-busy-scan-self-check,验证扫描进行中也能立即完成切换。

Raising the chosen window shared the serial scan queue with the 0.4s
background window scan, so a switch committed mid-scan waited for the
whole scan to finish. Activation now runs on its own queue.

Adds --activation-busy-scan-self-check to verify a switch completes
while a scan is still in progress.

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