mirror of
https://github.com/samsonjs/vibetunnel.git
synced 2026-04-26 15:07:39 +00:00
Hide window hack from dock
This commit is contained in:
parent
1ffabb048b
commit
9f8e45c184
1 changed files with 13 additions and 0 deletions
|
|
@ -116,6 +116,19 @@ struct HiddenWindowView: View {
|
|||
openSettings()
|
||||
}
|
||||
}
|
||||
.onAppear {
|
||||
// Hide this window from the dock menu and window lists
|
||||
if let window = NSApp.windows.first(where: { $0.title == "HiddenWindow" }) {
|
||||
window.collectionBehavior = [.auxiliary, .ignoresCycle, .transient]
|
||||
window.isExcludedFromWindowsMenu = true
|
||||
window.level = .floating
|
||||
window.isOpaque = false
|
||||
window.backgroundColor = .clear
|
||||
window.hasShadow = false
|
||||
window.ignoresMouseEvents = true
|
||||
window.canHide = false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue