Skip to content

feat: use borderless window to avoid focus theft#28

Open
MikuGeek wants to merge 1 commit intolaishulu:masterfrom
MikuGeek:master
Open

feat: use borderless window to avoid focus theft#28
MikuGeek wants to merge 1 commit intolaishulu:masterfrom
MikuGeek:master

Conversation

@MikuGeek
Copy link
Copy Markdown

Summary

Modified WindowUtils.swift to prevent the temporary window from stealing focus from the active application.

Changes

  • Changed window style to .borderless.
  • Used orderFront(nil) instead of makeKeyAndOrderFront(nil) to avoid making the window key.
  • Removed app.activate(ignoringOtherApps: true) to prevent the app from taking focus.

@imroc
Copy link
Copy Markdown

imroc commented Feb 1, 2026

我用这个 pr 编译替换了 macism 二进制,发现依然有失焦问题,附上录屏录屏:

2026-02-01.09.44.10.mov

@MikuGeek
Copy link
Copy Markdown
Author

MikuGeek commented Feb 2, 2026

我测的时候没用Yabai之类的😂
测试了Raycast,和Safari(用主线代码程序有切换问题)是没问题的。

@imroc
Copy link
Copy Markdown

imroc commented Feb 4, 2026

我用的 kitty 的 quick-access-terminal

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.

2 participants