Fix menu bar for macOS

This commit is contained in:
david-swift 2024-07-11 15:30:50 +02:00
parent 8e79a2bd23
commit f4c7ea40e7

View File

@ -37,6 +37,7 @@ public struct MenuBar: TermKitSceneElement {
menus: content.compactMap { $0.container(type: Menu.self, fields: [:]).pointer as? MenuBarItem }
)
Task {
try await Task.sleep(nanoseconds: 1)
for element in Application.top.subviews {
element.y = .bottom(of: menubar)
}