mirror of
https://github.com/Syngnat/GoNavi.git
synced 2026-08-09 08:13:29 +08:00
- 在主程序 Dock 菜单动态列出并聚焦已就绪的独立窗口 - 在 Wails 启动前固定子进程为 Accessory,消除临时 Dock 图标闪现 - 按多显示器可见区域修正越界窗口并回写实际坐标 - 将自定义 AI 面板快捷键同步到独立窗口并转交主窗口处理 - 补齐 Go、Objective-C、前端及 Wails 绑定回归测试
23 lines
391 B
Go
23 lines
391 B
Go
//go:build darwin && cgo
|
|
|
|
package nativewindow
|
|
|
|
import (
|
|
"testing"
|
|
"time"
|
|
)
|
|
|
|
func TestActiveDetachedDisplayBoundsReturnsWithoutAppKitRunLoop(t *testing.T) {
|
|
done := make(chan struct{})
|
|
go func() {
|
|
_ = activeDetachedDisplayBounds()
|
|
close(done)
|
|
}()
|
|
|
|
select {
|
|
case <-done:
|
|
case <-time.After(2 * time.Second):
|
|
t.Fatal("screen bounds query blocked without an AppKit run loop")
|
|
}
|
|
}
|